Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build and Test

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
codestyle:
name: Codestyle
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
- run: cargo check
env:
RUSTFLAGS: '-D unused'
- run: cargo clippy -- -D clippy::all
- run: cargo fmt --check
3 changes: 1 addition & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use anyhow::{Ok, Result};
use base64::prelude::*;
use clap::{ArgAction, Parser, Subcommand};
use clap::{Parser, Subcommand};
use humantime::Duration;
use pasetors::{
claims::Claims,
Expand All @@ -9,7 +9,6 @@ use pasetors::{
version4::V4,
};
use std::io::{self, Read};
use std::str::FromStr;
use thiserror::Error;

#[derive(Error, Debug)]
Expand Down
Loading