Skip to content

Commit 8518533

Browse files
refactor: simplify test pipeline
1 parent 745039d commit 8518533

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

.github/workflows/main.yml renamed to .github/workflows/test.yml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ on: [pull_request]
55
jobs:
66
test:
77
runs-on: ubuntu-latest
8-
env:
9-
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
10-
INFURA_PROJECT_ID: ${{ secrets.INFURA_PROJECT_ID }}
11-
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }}
128
steps:
139
- uses: actions/checkout@v4
1410

@@ -20,25 +16,26 @@ jobs:
2016
- name: Install dependencies
2117
run: npm ci
2218

23-
- name: Prepare local stack env
24-
id: prepare
25-
run: npm run start-test-stack
26-
27-
- name: Build
28-
run: npm run build
19+
- name: Prepare test environment
20+
run: |
21+
sudo apt-get update
22+
sudo apt-get install -y xxd
23+
npm run start-test-stack
2924
3025
- name: Check format
3126
run: npm run check-format
3227

3328
- name: Lint
3429
run: npm run lint
3530

36-
- name: Install global & Test
37-
run: |
38-
sudo apt-get update
39-
sudo apt-get install -y xxd
40-
npm install -g .
41-
npm test
31+
- name: Build
32+
run: npm run build
33+
34+
- name: Install global
35+
run: npm install -g .
36+
37+
- name: Test
38+
run: npm test
4239
env:
4340
INFURA_PROJECT_ID: ${{ secrets.INFURA_PROJECT_ID }}
4441
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }}

0 commit comments

Comments
 (0)