diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..386f1b3 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +name: main + +on: + - push + - pull_request + +env: + RUSTFLAGS: "-Dwarnings" + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - run: | + rustup set auto-self-update disable + rustup toolchain install stable --profile minimal + + - uses: Swatinem/rust-cache@v2 + + - name: Check + run: cargo check + + - name: Test + run: cargo test --verbose + + - name: Clippy + run: cargo clippy