From 7181914af277800f2c1020f721af22f9cf45903d Mon Sep 17 00:00:00 2001 From: KevFan Date: Fri, 13 Oct 2023 11:01:44 +0100 Subject: [PATCH] refactor: use actions/checkout@v4 instead of v2 --- .github/workflows/build-image.yaml | 2 +- .github/workflows/coverage.yml | 4 ++-- .github/workflows/e2e.yaml | 2 +- .github/workflows/release.yaml | 2 +- .github/workflows/rust.yml | 12 ++++++------ 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-image.yaml b/.github/workflows/build-image.yaml index a725ff74..5150c442 100644 --- a/.github/workflows/build-image.yaml +++ b/.github/workflows/build-image.yaml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Add latest tag if: ${{ github.ref_name == env.MAIN_BRANCH_NAME }} run: | diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index ee823a60..dd7d7bea 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -11,7 +11,7 @@ jobs: name: Check runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: actions-rust-lang/setup-rust-toolchain@v1 - uses: abelfodil/protoc-action@v1 with: @@ -32,7 +32,7 @@ jobs: USER: username PASS: password steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: supercharge/redis-github-action@1.1.0 with: redis-version: 5 diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index ea51a4be..38980222 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Build Limitador Image id: build-image uses: redhat-actions/buildah-build@v2 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f9222df4..fd75977d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -20,7 +20,7 @@ jobs: - uses: supercharge/redis-github-action@1.1.0 with: redis-version: 5 - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: crate-v${{ github.event.inputs.version }} - name: Build diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 0e309b37..428dd3e7 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -16,7 +16,7 @@ jobs: name: Check runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: actions-rust-lang/setup-rust-toolchain@v1 - uses: abelfodil/protoc-action@v1 with: @@ -35,7 +35,7 @@ jobs: USER: username PASS: password steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: supercharge/redis-github-action@1.1.0 with: redis-version: 5 @@ -49,7 +49,7 @@ jobs: name: Rustfmt runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: actions-rust-lang/setup-rust-toolchain@v1 - run: rustup component add rustfmt - run: cargo fmt --all -- --check @@ -59,7 +59,7 @@ jobs: name: Clippy runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: actions-rust-lang/setup-rust-toolchain@v1 - run: rustup component add clippy - uses: abelfodil/protoc-action@v1 @@ -71,7 +71,7 @@ jobs: name: Bench runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: supercharge/redis-github-action@1.1.0 with: redis-version: 5 @@ -85,7 +85,7 @@ jobs: name: Build for WASM runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: actions-rust-lang/setup-rust-toolchain@v1 - run: rustup target add wasm32-unknown-unknown - run: cargo build --target=wasm32-unknown-unknown --no-default-features --lib --manifest-path ./limitador/Cargo.toml