Skip to content

Commit 7761b53

Browse files
committed
fix(ci): fixed ci process with gh
1 parent c04c926 commit 7761b53

2 files changed

Lines changed: 13 additions & 11 deletions

File tree

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Node.js CI
22

3-
on: [push]
3+
on: [pull_request]
44

55
jobs:
66
build:
@@ -12,15 +12,17 @@ jobs:
1212
uses: actions/setup-node@v4
1313
with:
1414
node-version: "22.15.x"
15-
- run: npm ci
16-
- run: npm run build --if-present
17-
- run: npm test
1815
- run: sudo apt-get update
1916
- run: sudo apt-get install -y tzdata
2017
- run: sudo ln -fs /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime
2118
- run: yarn
2219
- run: yarn test-ci
23-
- coveralls/upload:
24-
path_to_lcov: "./reports/coverage/lcov.info"
25-
- store_test_results:
26-
path: test-results
20+
- name: Coveralls
21+
uses: coverallsapp/github-action@v2
22+
with:
23+
github-token: ${{ secrets.GITHUB_TOKEN }}
24+
path-to-lcov: ./reports/coverage/lcov.info
25+
- name: Upload test results
26+
uses: actions/upload-artifact@v4
27+
with:
28+
name: test-results

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
"usePathForSuiteName": "true"
3232
},
3333
"engines": {
34-
"node": "^12.18.1",
35-
"yarn": "^1.20.0",
36-
"npm": "^6.0.0"
34+
"node": "^22",
35+
"yarn": "^1.22",
36+
"npm": "^10"
3737
},
3838
"lint-staged": {
3939
"src/**/*.js": [

0 commit comments

Comments
 (0)