From b856e06aac6d975d2aea320a8ebc89794490739d Mon Sep 17 00:00:00 2001 From: Nashira Deer Date: Mon, 10 Jun 2024 21:27:32 -0300 Subject: [PATCH] chore: match GitHub Actions from main --- .github/workflows/check-legacy-v2.yml | 33 +++++++++++++++++++++++++++ .github/workflows/check.yml | 2 +- .github/workflows/test-legacy-v2.yml | 27 ++++++++++++++++++++++ .github/workflows/test.yml | 2 +- 4 files changed, 62 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/check-legacy-v2.yml create mode 100644 .github/workflows/test-legacy-v2.yml diff --git a/.github/workflows/check-legacy-v2.yml b/.github/workflows/check-legacy-v2.yml new file mode 100644 index 0000000..b328ce3 --- /dev/null +++ b/.github/workflows/check-legacy-v2.yml @@ -0,0 +1,33 @@ +name: Check - Legacy v2 + +on: + push: + branches: ["legacy/v2"] + pull_request: + branches: ["legacy/v2"] + workflow_dispatch: + +env: + CARGO_TERM_COLOR: always + RUST_VERSION: "1.75" + +jobs: + check: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Install Rust ${{ env.RUST_VERSION }} + run: rustup install ${{ env.RUST_VERSION }} + - name: Set Rust ${{ env.RUST_VERSION }} as default + run: rustup default ${{ env.RUST_VERSION }} + - name: Check with default features + run: cargo check --config 'build.rustflags = ["-Dwarnings"]' + - name: Check with all features + run: cargo check --config 'build.rustflags = ["-Dwarnings"]' --all-features + - name: Install Clippy + run: rustup component add clippy + - name: Run Clippy with default features + run: cargo clippy --config 'build.rustflags = ["-Dwarnings"]' + - name: Run Clippy with all features + run: cargo clippy --config 'build.rustflags = ["-Dwarnings"]' --all-features diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 3d4738c..7c5ad33 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -9,7 +9,7 @@ on: env: CARGO_TERM_COLOR: always - RUST_VERSION: "1.75" + RUST_VERSION: "1.78" jobs: check: diff --git a/.github/workflows/test-legacy-v2.yml b/.github/workflows/test-legacy-v2.yml new file mode 100644 index 0000000..16622e2 --- /dev/null +++ b/.github/workflows/test-legacy-v2.yml @@ -0,0 +1,27 @@ +name: Test - Legacy v2 + +on: + push: + branches: ["legacy/v2"] + pull_request: + branches: ["legacy/v2"] + workflow_dispatch: + +env: + CARGO_TERM_COLOR: always + RUST_VERSION: "1.75" + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Install Rust ${{ env.RUST_VERSION }} + run: rustup install ${{ env.RUST_VERSION }} + - name: Set Rust ${{ env.RUST_VERSION }} as default + run: rustup default ${{ env.RUST_VERSION }} + - name: Test with default features + run: cargo test + - name: Test with all features + run: cargo test --all-features diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a6ec323..62eba51 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ on: env: CARGO_TERM_COLOR: always - RUST_VERSION: "1.75" + RUST_VERSION: "1.78" jobs: test: