Skip to content

Commit

Permalink
chore(ci) bump actions versions
Browse files Browse the repository at this point in the history
* `actions/upload-artifact` to v4
* `github/codeql-action` to v3
* `acifani/setup-tinygo` to v2
* `actions/checkout` to v4
* `actions/cache` to v4
* `actions/setup-node` to v4
* `docker/setup-buildx-action` to v3
* `docker/build-push-action` to v5
* `codecov/codecov-action` to v4
  • Loading branch information
casimiro authored and thibaultcha committed Feb 8, 2024
1 parent c37b8ef commit e9a5cf5
Show file tree
Hide file tree
Showing 8 changed files with 58 additions and 58 deletions.
4 changes: 2 additions & 2 deletions .github/actions/setup-httpbin-server/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ runs:
password: ${{ inputs.ghcr_password }}
- name: Setup Docker Buildx
if: ${{ !env.ACT }}
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Build httpbin-proxy image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
file: './assets/ci/Dockerfile.nginx'
tags: ${{ steps.setup.outputs.tag }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: 'Setup cache - rustup toolchain'
uses: actions/cache@v3
uses: actions/cache@v4
if: ${{ !env.ACT }}
with:
path: |
Expand All @@ -228,7 +228,7 @@ jobs:
with:
components: clippy
- name: 'Setup cache - work/ dir'
uses: actions/cache@v3
uses: actions/cache@v4
if: ${{ !env.ACT }}
with:
path: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/job-build-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ jobs:
if: ${{ !env.ACT && contains(inputs.os, 'macos') }}
run: brew install ninja openssh

- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: 'Setup cache - work/ dir'
uses: actions/cache@v3
uses: actions/cache@v4
if: ${{ !env.ACT }}
with:
path: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/job-clang-analyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ jobs:
sudo apt-get update
sudo apt-get install -y $(echo ${{ inputs.cc }} | sed s/clang/clang-tools/)
sudo update-alternatives --install /usr/bin/scan-build scan-build /usr/bin/$(echo ${{ inputs.cc }} | sed s/clang/scan-build/) 100
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: 'Setup cache - work/ dir'
uses: actions/cache@v3
uses: actions/cache@v4
if: ${{ !env.ACT }}
with:
path: |
Expand All @@ -66,7 +66,7 @@ jobs:
run: ./util/runtime.sh -R ${{ inputs.runtime }} -V ${{ inputs[inputs.runtime] }}
- run: make setup
- run: make
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
if: ${{ failure() && !env.ACT }}
with:
name: ${{ github.workflow }}-${{ github.job }}-sha-${{ github.sha }}-run-${{ github.run_number }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/job-codeql-analyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ jobs:
outputs:
sarif_file: ${{ steps.sarif-filename.outputs.name }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ inputs.language }}
config-file: ./.github/actions/codeql-config.yml
- name: 'Setup cache - work/ dir'
uses: actions/cache@v3
uses: actions/cache@v4
if: ${{ !env.ACT }}
with:
path: |
Expand All @@ -55,7 +55,7 @@ jobs:
- run: make setup
- run: make
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
with:
upload: false
output: sarif-results
Expand All @@ -76,11 +76,11 @@ jobs:
input: sarif-results/${{ steps.sarif-filename.outputs.name }}.sarif
output: sarif-results/${{ steps.sarif-filename.outputs.name }}.sarif
- name: Upload SARIF
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: sarif-results
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: sarif-results
name: sarif-results-${{ inputs.runtime }}
path: sarif-results
retention-days: ${{ github.retention_days }}
14 changes: 7 additions & 7 deletions .github/workflows/job-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ jobs:
- name: 'Setup deps - apt-get'
if: ${{ contains(inputs.os, 'ubuntu') }}
run: sudo apt-get update && sudo apt-get install -y ${CC} libstdc++-${CC#*-}-dev lcov
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: 'Setup cache - rustup toolchain'
if: ${{ !env.ACT }}
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.rustup/settings.toml
Expand All @@ -84,7 +84,7 @@ jobs:
key: rust-toolchain-${{ inputs.os }}-${{ hashFiles('.github/**/*.yml', '.github/**/*.sh', 'rust-toolchain') }}
- name: 'Setup cache - work/ dir'
if: ${{ !env.ACT }}
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
work/downloads
Expand All @@ -98,11 +98,11 @@ jobs:
target: wasm32-wasi
- name: Setup TinyGo
if: ${{ !env.ACT }}
uses: acifani/setup-tinygo@v1
uses: acifani/setup-tinygo@v2
with:
tinygo-version: 0.27.0
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.9.0
- name: Setup Wasm runtime
Expand Down Expand Up @@ -151,14 +151,14 @@ jobs:
parallel: true
- name: Codecov Upload
if: ${{ !env.ACT && inputs.coverage }}
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: './lcov.info'
flags: unit
- run: rm -f t/servroot/html/nginx.sock
if: ${{ failure() && !env.ACT }}
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
if: ${{ failure() && !env.ACT }}
with:
name: ${{ github.workflow }}-${{ github.job }}-sha-${{ github.sha }}-run-${{ github.run_number }}-${{ inputs.runtime }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/job-valgrind-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ jobs:
- name: 'Setup deps - apt-get'
if: ${{ contains(inputs.os, 'ubuntu') }}
run: sudo apt-get update && sudo apt-get install -y valgrind ${CC} libstdc++-${CC#*-}-dev lcov
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: 'Setup cache - rustup toolchain'
uses: actions/cache@v3
uses: actions/cache@v4
if: ${{ !env.ACT }}
with:
path: |
Expand All @@ -82,7 +82,7 @@ jobs:
~/.rustup/update-hashes/*
key: rust-toolchain-${{ inputs.os }}-${{ hashFiles('.github/**/*.yml', '.github/**/*.sh', 'rust-toolchain') }}
- name: 'Setup cache - work/ dir'
uses: actions/cache@v3
uses: actions/cache@v4
if: ${{ !env.ACT }}
with:
path: |
Expand All @@ -97,11 +97,11 @@ jobs:
target: wasm32-wasi
- name: Setup TinyGo
if: ${{ !env.ACT }}
uses: acifani/setup-tinygo@v1
uses: acifani/setup-tinygo@v2
with:
tinygo-version: 0.27.0
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.9.0
- name: Setup Wasm runtime
Expand Down Expand Up @@ -133,14 +133,14 @@ jobs:
lcov --gcov-tool gcov-${CC#*-} --extract lcov.info "*/ngx_wasm_module/src/*" --output-file lcov.info
- name: Codecov Upload
if: ${{ !env.ACT && inputs.coverage }}
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: './lcov.info'
flags: valgrind
- run: rm -f t/servroot/html/nginx.sock
if: ${{ failure() && !env.ACT }}
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
if: ${{ failure() && !env.ACT }}
with:
name: ${{ github.workflow }}-${{ github.job }}-sha-${{ github.sha }}-run-${{ github.run_number }}-${{ inputs.runtime }}
Expand Down
Loading

0 comments on commit e9a5cf5

Please sign in to comment.