From 77095133144945e354a4320a512435a1c9777562 Mon Sep 17 00:00:00 2001 From: Jonathan <94441036+zeapoz@users.noreply.github.com> Date: Wed, 27 Sep 2023 14:45:44 +0200 Subject: [PATCH] chore: init ci (#2) --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/ci.yml 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 }}