diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d7b4ec4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: basics + +on: + pull_request: + push: + branches: + - main + +env: + CARGO_TERM_COLOR: always + +jobs: + core: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + checks: [ + cargo fmt --all --check, + cargo check --all-targets --all-features, + cargo clippy --all-targets --all-features, + cargo test + ] + steps: + - uses: actions/checkout@v4 + - uses: Swatinem/rust-cache@v2 + - name: ${{ matrix.checks }} + run: ${{ matrix.checks }}