Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: use newer github actions #708

Draft
wants to merge 11 commits into
base: dev
Choose a base branch
from
2 changes: 1 addition & 1 deletion .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
ref: ${{ inputs.commit }}

- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.18.0
cache: yarn
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/l1-contracts-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.18.0
cache: yarn
Expand All @@ -32,7 +32,7 @@ jobs:
run: yarn l2 build

- name: Create cache
uses: actions/cache/save@v3
uses: actions/cache/save@v4
with:
key: artifacts-l1-${{ github.sha }}
path: |
Expand All @@ -51,7 +51,7 @@ jobs:
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.18.0
cache: yarn
Expand All @@ -76,7 +76,7 @@ jobs:
uses: foundry-rs/foundry-toolchain@v1

- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.18.0
cache: yarn
Expand All @@ -85,7 +85,7 @@ jobs:
run: yarn

- name: Restore artifacts cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
fail-on-cache-miss: true
key: artifacts-l1-${{ github.sha }}
Expand All @@ -106,7 +106,7 @@ jobs:
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.18.0
cache: yarn
Expand All @@ -115,7 +115,7 @@ jobs:
run: yarn

- name: Restore artifacts cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
fail-on-cache-miss: true
key: artifacts-l1-${{ github.sha }}
Expand Down Expand Up @@ -168,7 +168,7 @@ jobs:
uses: foundry-rs/foundry-toolchain@v1

- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.18.0
cache: yarn
Expand All @@ -177,7 +177,7 @@ jobs:
run: yarn

- name: Restore artifacts cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
fail-on-cache-miss: true
key: artifacts-l1-${{ github.sha }}
Expand Down Expand Up @@ -208,7 +208,7 @@ jobs:
# is why we use both in this way.
- name: Post coverage report
if: github.event_name == 'pull_request' # This action fails when ran outside of a pull request.
uses: romeovs/lcov-reporter-action@v0.3.1
uses: romeovs/lcov-reporter-action@v0.4.0
with:
delete-old-comments: true
lcov-file: ./l1-contracts/lcov.info
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/l2-contracts-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.18.0
cache: yarn
Expand All @@ -27,7 +27,7 @@ jobs:
run: yarn l2 build

- name: Create cache
uses: actions/cache/save@v3
uses: actions/cache/save@v4
with:
key: artifacts-l2-${{ github.sha }}
path: |
Expand All @@ -46,7 +46,7 @@ jobs:
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.18.0
cache: yarn
Expand All @@ -68,7 +68,7 @@ jobs:
submodules: recursive

- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.18.0
cache: yarn
Expand All @@ -77,7 +77,7 @@ jobs:
run: yarn

- name: Restore artifacts cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
fail-on-cache-miss: true
key: artifacts-l2-${{ github.sha }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nodejs-license.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.18.0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/slither.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
submodules: recursive

- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.18.0
cache: yarn
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/system-contracts-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.18.0
cache: yarn
Expand All @@ -24,7 +24,7 @@ jobs:
run: yarn sc build

- name: Create cache
uses: actions/cache/save@v3
uses: actions/cache/save@v4
with:
key: artifacts-system-${{ github.sha }}
path: |
Expand All @@ -42,7 +42,7 @@ jobs:
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.18.0
cache: yarn
Expand All @@ -67,7 +67,7 @@ jobs:
toolchain: nightly-2023-04-17

- name: Restore artifacts cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
fail-on-cache-miss: true
key: artifacts-system-${{ github.sha }}
Expand All @@ -92,7 +92,7 @@ jobs:
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.18.0
cache: yarn
Expand All @@ -106,7 +106,7 @@ jobs:
run: yarn

- name: Restore artifacts cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
fail-on-cache-miss: true
key: artifacts-system-${{ github.sha }}
Expand All @@ -133,7 +133,7 @@ jobs:
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.18.0
cache: yarn
Expand All @@ -142,7 +142,7 @@ jobs:
run: yarn

- name: Restore artifacts cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
fail-on-cache-miss: true
key: artifacts-system-${{ github.sha }}
Expand Down
Loading