22on :
33 pull_request :
44 paths-ignore :
5- - ' .github/workflows/**'
5+ - " .github/workflows/**"
66jobs :
77 code-style :
88 name : code-style
@@ -12,53 +12,53 @@ jobs:
1212 SUBQL_ACCESS_TOKEN_TEST : ${{ secrets.SUBQL_ACCESS_TOKEN_TEST }}
1313 SUBQL_ORG_TEST : ${{ secrets.SUBQL_ORG_TEST }}
1414 steps :
15- - uses : actions/checkout@v3
16- - name : Setup Node.js environment
17- uses : actions/setup-node@v4
18- with :
19- node-version : 18
20- - run : yarn
21- - name : build
22- run : yarn build
23- - name : code-style check
24- run : yarn pretty-quick --check --pattern 'packages/*/src/**/*' --branch origin/main
25- - name : lint
26- run : yarn lint
15+ - uses : actions/checkout@v3
16+ - name : Setup Node.js environment
17+ uses : actions/setup-node@v4
18+ with :
19+ node-version : lts/*
20+ - run : yarn
21+ - name : build
22+ run : yarn build
23+ - name : code-style check
24+ run : yarn pretty-quick --check --pattern 'packages/*/src/**/*' --branch origin/main
25+ - name : lint
26+ run : yarn lint
2727
2828 coverage :
29- name : Coverage report
30- runs-on : ubuntu-latest
31- services :
32- postgres :
33- image : postgres
34- env :
35- POSTGRES_PASSWORD : postgres
36- options : >-
37- --health-cmd pg_isready
38- --health-interval 10s
39- --health-timeout 5s
40- --health-retries 5
29+ name : Coverage report
30+ runs-on : ubuntu-latest
31+ services :
32+ postgres :
33+ image : postgres
4134 env :
42- DB_USER : postgres
43- DB_PASS : postgres
44- DB_DATABASE : postgres
45- DB_HOST : postgres
46- DB_PORT : 5432
47- steps :
48- - uses : actions/checkout@v3
35+ POSTGRES_PASSWORD : postgres
36+ options : >-
37+ --health-cmd pg_isready
38+ --health-interval 10s
39+ --health-timeout 5s
40+ --health-retries 5
41+ env :
42+ DB_USER : postgres
43+ DB_PASS : postgres
44+ DB_DATABASE : postgres
45+ DB_HOST : postgres
46+ DB_PORT : 5432
47+ steps :
48+ - uses : actions/checkout@v3
4949
50- - name : Use Node 18
51- uses : actions/setup-node@v4
52- with :
53- node-version : 18
50+ - name : Use Node 18
51+ uses : actions/setup-node@v4
52+ with :
53+ node-version : lts/*
5454
55- - name : Installing dependencies
56- run : yarn install
55+ - name : Installing dependencies
56+ run : yarn install
5757
58- - uses : artiomtr/jest-coverage-report-action@v2
59- with :
60- github-token : ${{ secrets.GITHUB_TOKEN }}
61- skip-step : install
62- working-directory : ${{ matrix.path }}
63- test-script : yarn test-jest
64- annotations : none
58+ - uses : artiomtr/jest-coverage-report-action@v2
59+ with :
60+ github-token : ${{ secrets.GITHUB_TOKEN }}
61+ skip-step : install
62+ working-directory : ${{ matrix.path }}
63+ test-script : yarn test-jest
64+ annotations : none
0 commit comments