diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 75806aa..b7130d9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,7 @@ on: push: branches: - '*' + - ci/migrate-actions paths-ignore: - 'README.md' - 'LICENSE' @@ -16,56 +17,20 @@ jobs: name: Check runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2 - - uses: actions-rs/cargo@v1 - with: - command: check + + - name: Run cargo check + run: cargo check test: name: Test Suite runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2 - - uses: actions-rs/cargo@v1 - with: - command: test - -# fmt: -# name: Rustfmt -# runs-on: ubuntu-latest -# steps: -# - uses: actions/checkout@v2 -# - uses: actions-rs/toolchain@v1 -# with: -# profile: minimal -# - uses: Swatinem/rust-cache@v2 -# - run: rustup component add rustfmt -# - uses: actions-rs/cargo@v1 -# with: -# command: fmt -# args: --all -- --check -# clippy: -# name: Clippy -# runs-on: ubuntu-latest -# steps: -# - uses: actions/checkout@v2 -# - uses: actions-rs/toolchain@v1 -# with: -# profile: minimal -# - uses: Swatinem/rust-cache@v2 -# - run: rustup component add clippy -# - uses: actions-rs/cargo@v1 -# with: -# command: clippy -# args: -- -D warnings + - name: Run cargo test + run: cargo test