Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 9aab5cd

Browse files
authored
chore: update CI actions (#7385)
1 parent 6af068f commit 9aab5cd

File tree

6 files changed

+134
-135
lines changed

6 files changed

+134
-135
lines changed

.github/workflows/black_box_tests.yml

+48-48
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
11
name: 'Black Box Tests'
22
on:
33
push:
4-
branches:
5-
- release/**
6-
tags:
7-
- v4.*
4+
branches:
5+
- release/**
6+
tags:
7+
- v4.*
88

99
jobs:
10-
build:
11-
strategy:
12-
matrix:
13-
node: [18]
14-
name: Build Packages
15-
runs-on: ubuntu-latest
16-
steps:
17-
- uses: actions/checkout@v3
18-
- uses: actions/setup-node@v3
19-
with:
20-
node-version: ${{ matrix.node }}
21-
- run: yarn
22-
- run: tar -czf /tmp/web3-${{ matrix.node }}.js.tar.gz --exclude="./.git" ./
23-
- uses: actions/upload-artifact@v3
24-
with:
25-
name: web3-${{ matrix.node }}.js.tar.gz
26-
path: /tmp/web3-${{ matrix.node }}.js.tar.gz
27-
black-box:
28-
name: Black Box
29-
needs: build
30-
runs-on: ubuntu-latest
31-
env:
32-
INFURA_MAINNET_HTTP: ${{ secrets.INFURA_MAINNET_HTTP }}
33-
INFURA_MAINNET_WS: ${{ secrets.INFURA_MAINNET_WS }}
34-
INFURA_SEPOLIA_WS: ${{ secrets.INFURA_SEPOLIA_WS }}
35-
MODE: ${{ matrix.mode }}
36-
strategy:
37-
fail-fast: false
38-
matrix:
39-
node: [18]
40-
mode: ['http', 'ws']
41-
backend: ['geth', 'infura']
42-
steps:
43-
- uses: actions/setup-node@v3
44-
with:
45-
node-version: ${{ matrix.node }}
46-
- uses: actions/download-artifact@v3
47-
with:
48-
name: web3-${{ matrix.node }}.js.tar.gz
49-
path: /tmp
50-
- run: tar -xf /tmp/web3-${{ matrix.node }}.js.tar.gz -C ./
51-
- run: |
52-
yarn test:blackbox:${{ matrix.backend }}:${{ matrix.mode }}
53-
shell: bash
10+
build:
11+
strategy:
12+
matrix:
13+
node: [18]
14+
name: Build Packages
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: ${{ matrix.node }}
21+
- run: yarn
22+
- run: tar -czf /tmp/web3-${{ matrix.node }}.js.tar.gz --exclude="./.git" ./
23+
- uses: actions/upload-artifact@v4
24+
with:
25+
name: web3-${{ matrix.node }}.js.tar.gz
26+
path: /tmp/web3-${{ matrix.node }}.js.tar.gz
27+
black-box:
28+
name: Black Box
29+
needs: build
30+
runs-on: ubuntu-latest
31+
env:
32+
INFURA_MAINNET_HTTP: ${{ secrets.INFURA_MAINNET_HTTP }}
33+
INFURA_MAINNET_WS: ${{ secrets.INFURA_MAINNET_WS }}
34+
INFURA_SEPOLIA_WS: ${{ secrets.INFURA_SEPOLIA_WS }}
35+
MODE: ${{ matrix.mode }}
36+
strategy:
37+
fail-fast: false
38+
matrix:
39+
node: [18]
40+
mode: ['http', 'ws']
41+
backend: ['geth', 'infura']
42+
steps:
43+
- uses: actions/setup-node@v4
44+
with:
45+
node-version: ${{ matrix.node }}
46+
- uses: actions/download-artifact@v4
47+
with:
48+
name: web3-${{ matrix.node }}.js.tar.gz
49+
path: /tmp
50+
- run: tar -xf /tmp/web3-${{ matrix.node }}.js.tar.gz -C ./
51+
- run: |
52+
yarn test:blackbox:${{ matrix.backend }}:${{ matrix.mode }}
53+
shell: bash

.github/workflows/build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ jobs:
149149
- run: yarn test:unit
150150
continue-on-error: ${{ matrix.node == '20.17.0' }}
151151
- name: Upload coverage to Codecov
152-
uses: codecov/codecov-action@v3
152+
uses: codecov/codecov-action@v4
153153
with:
154154
flags: UnitTests
155155
token: ${{ secrets.CODECOV_TOKEN }}
@@ -162,7 +162,7 @@ jobs:
162162
strategy:
163163
fail-fast: false
164164
steps:
165-
- uses: actions/setup-node@v3
165+
- uses: actions/setup-node@v4
166166
with:
167167
node-version: 18
168168
- uses: actions/cache/restore@v4
@@ -204,7 +204,7 @@ jobs:
204204
matrix:
205205
browser: ['electron', 'chrome', 'firefox']
206206
steps:
207-
- uses: actions/setup-node@v3
207+
- uses: actions/setup-node@v4
208208
with:
209209
node-version: 18
210210
- uses: browser-actions/setup-firefox@latest

.github/workflows/canary_release.yml

+18-19
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
name: 'Release Canary'
22
on:
3-
push:
4-
branches:
5-
- '4.x'
3+
push:
4+
branches:
5+
- '4.x'
66

77
jobs:
8-
release:
9-
name: release
10-
runs-on: ubuntu-latest
11-
steps:
12-
- uses: actions/checkout@v3
13-
- uses: actions/setup-node@v3
14-
with:
15-
node-version: 18
16-
cache: yarn
17-
registry-url: 'https://registry.npmjs.org'
18-
- run: yarn install --frozen-lockfile
19-
- run: yarn build:web
20-
- run: yarn publish:canary
21-
env:
22-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
23-
8+
release:
9+
name: release
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: 18
16+
cache: yarn
17+
registry-url: 'https://registry.npmjs.org'
18+
- run: yarn install --frozen-lockfile
19+
- run: yarn build:web
20+
- run: yarn publish:canary
21+
env:
22+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/deploy-docs.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: Docs CloudFlare Deploy
22
on:
33
push:
4-
branches:
5-
- "4.x"
6-
tags-ignore:
7-
- v4*
4+
branches:
5+
- '4.x'
6+
tags-ignore:
7+
- v4*
88

99
jobs:
1010
deploy:
+45-45
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
11
name: 'E2E Network Tests'
22
on:
33
push:
4-
branches:
5-
- release/**
6-
tags:
7-
- v4.*
4+
branches:
5+
- release/**
6+
tags:
7+
- v4.*
88

99
# For test purpose only:
1010
# pull_request:
1111
# branches:
1212
# - '4.x'
1313
# types: [ opened, reopened, synchronize ]
1414
jobs:
15-
build:
16-
name: Build Packages
17-
runs-on: ubuntu-latest
18-
steps:
19-
- uses: actions/checkout@v3
20-
- uses: actions/setup-node@v3
21-
with:
22-
node-version: 18
23-
cache: yarn
24-
- run: yarn
25-
- uses: actions/cache/save@v4
26-
with:
27-
path: ./
28-
key: web3-e2e-18-${{github.sha}}
29-
e2e:
30-
name: E2E Network Tests
31-
needs: build
32-
runs-on: ubuntu-latest
33-
env:
34-
INFURA_SEPOLIA_HTTP: ${{ secrets.CS_ETH_SEPOLIA }}
35-
INFURA_MAINNET_HTTP: ${{ secrets.CS_ETH_MAINNET }}
36-
MODE: ${{ matrix.mode }}
37-
TEST_ACCOUNT_ADDRESS: ${{ fromJSON('{"sepolia":"0xa127C5E6a7E3600Ac34A9a9928E52521677e7211","mainnet":"0x98AF911164f9d4E0f5983ed114949c3Bfe3ADc9d"}')[matrix.network] }}
38-
ALLOWED_SEND_TRANSACTION: ${{ secrets.E2E_TESTS_ALLOWED_SEND_TRANSACTION }}
39-
TEST_ACCOUNT_PRIVATE_KEY: ${{ secrets.TEST_ACCOUNT_PRIVATE_KEY }}
40-
strategy:
41-
fail-fast: false
42-
matrix:
43-
mode: ['http']
44-
network: ['sepolia', 'mainnet']
45-
steps:
46-
- uses: actions/setup-node@v3
47-
with:
48-
node-version: 18
49-
- uses: actions/cache/restore@v4
50-
with:
51-
path: ./
52-
key: web3-e2e-18-${{github.sha}}
53-
- run: |
54-
yarn test:e2e:${{ matrix.network }}:${{ matrix.mode }}
55-
shell: bash
15+
build:
16+
name: Build Packages
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version: 18
23+
cache: yarn
24+
- run: yarn
25+
- uses: actions/cache/save@v4
26+
with:
27+
path: ./
28+
key: web3-e2e-18-${{github.sha}}
29+
e2e:
30+
name: E2E Network Tests
31+
needs: build
32+
runs-on: ubuntu-latest
33+
env:
34+
INFURA_SEPOLIA_HTTP: ${{ secrets.CS_ETH_SEPOLIA }}
35+
INFURA_MAINNET_HTTP: ${{ secrets.CS_ETH_MAINNET }}
36+
MODE: ${{ matrix.mode }}
37+
TEST_ACCOUNT_ADDRESS: ${{ fromJSON('{"sepolia":"0xa127C5E6a7E3600Ac34A9a9928E52521677e7211","mainnet":"0x98AF911164f9d4E0f5983ed114949c3Bfe3ADc9d"}')[matrix.network] }}
38+
ALLOWED_SEND_TRANSACTION: ${{ secrets.E2E_TESTS_ALLOWED_SEND_TRANSACTION }}
39+
TEST_ACCOUNT_PRIVATE_KEY: ${{ secrets.TEST_ACCOUNT_PRIVATE_KEY }}
40+
strategy:
41+
fail-fast: false
42+
matrix:
43+
mode: ['http']
44+
network: ['sepolia', 'mainnet']
45+
steps:
46+
- uses: actions/setup-node@v4
47+
with:
48+
node-version: 18
49+
- uses: actions/cache/restore@v4
50+
with:
51+
path: ./
52+
key: web3-e2e-18-${{github.sha}}
53+
- run: |
54+
yarn test:e2e:${{ matrix.network }}:${{ matrix.mode }}
55+
shell: bash

.github/workflows/stale.yml

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
name: "Close stale issues"
1+
name: 'Close stale issues'
22
on:
3-
schedule:
4-
- cron: "0 0 * * *"
3+
schedule:
4+
- cron: '0 0 * * *'
55

66
jobs:
7-
stale:
8-
runs-on: ubuntu-latest
9-
steps:
10-
- uses: actions/stale@v3
11-
with:
12-
repo-token: ${{ secrets.GITHUB_TOKEN }}
13-
stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment.'
14-
stale-pr-message: 'This PR has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment.'
15-
days-before-stale: 60
16-
days-before-close: 14
17-
operations-per-run: 100
18-
exempt-pr-labels: 'work-in-progress,4.x'
19-
exempt-issue-labels: 'work-in-progress,4.x'
7+
stale:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/stale@v3
11+
with:
12+
repo-token: ${{ secrets.GITHUB_TOKEN }}
13+
stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment.'
14+
stale-pr-message: 'This PR has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment.'
15+
days-before-stale: 60
16+
days-before-close: 14
17+
operations-per-run: 100
18+
exempt-pr-labels: 'work-in-progress,4.x'
19+
exempt-issue-labels: 'work-in-progress,4.x'

0 commit comments

Comments
 (0)