Skip to content

Commit 6fad193

Browse files
committed
update node version in CI
1 parent 59c6ec6 commit 6fad193

File tree

2 files changed

+29
-32
lines changed

2 files changed

+29
-32
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
- uses: actions/setup-node@v3
2424
with:
25-
node-version: 16
25+
node-version: 18
2626

2727
- uses: pnpm/action-setup@v2
2828
with:

.github/workflows/test.yml

Lines changed: 28 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,36 @@
11
name: Test
22
on:
3-
pull_request:
4-
types: [opened, synchronize]
5-
push:
6-
branches: [main]
3+
pull_request:
4+
types: [opened, synchronize]
5+
push:
6+
branches: [main]
77

88
jobs:
9-
test:
10-
permissions:
11-
contents: read
12-
packages: read
9+
test:
10+
permissions:
11+
contents: read
12+
packages: read
1313

14-
runs-on: ubuntu-20.04
15-
steps:
16-
- uses: actions/checkout@v3
17-
with:
18-
fetch-depth: 0
14+
runs-on: ubuntu-20.04
15+
steps:
16+
- uses: actions/checkout@v3
17+
with:
18+
fetch-depth: 0
1919

20-
- uses: actions/setup-node@v3
21-
with:
22-
node-version: 16
20+
- uses: actions/setup-node@v3
21+
with:
22+
node-version: 18
23+
- uses: pnpm/action-setup@v2
24+
with:
25+
run_install: |
26+
- recursive: true
27+
args: [--frozen-lockfile, --strict-peer-dependencies]
2328
24-
- uses: pnpm/action-setup@v2
25-
with:
26-
run_install: |
27-
- recursive: true
28-
args: [--frozen-lockfile, --strict-peer-dependencies]
29-
env:
30-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
- run: pnpm run test:ci
3130

32-
- run: pnpm run test:ci
33-
34-
- name: notify sonarqube
35-
if: ${{ github.event_name == 'push' }}
36-
uses: sonarsource/sonarqube-scan-action@master
37-
env:
38-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
39-
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
31+
- name: notify sonarqube
32+
if: ${{ github.event_name == 'push' }}
33+
uses: sonarsource/sonarqube-scan-action@master
34+
env:
35+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
36+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

0 commit comments

Comments
 (0)