Skip to content

Commit ad6df61

Browse files
committed
ci: update actions versions and Node version
1 parent d57fac6 commit ad6df61

9 files changed

Lines changed: 50 additions & 51 deletions

File tree

.github/workflows/assign-pr-author.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Assign PR author
1414
uses: actions/github-script@v7
1515
with:
16-
github-token: ${{secrets.GITHUB_TOKEN}}
16+
github-token: ${{ secrets.GITHUB_TOKEN }}
1717
script: |
1818
github.rest.issues.addAssignees({
1919
issue_number: context.issue.number,

.github/workflows/ci.yml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111
name: Audit
1212
steps:
1313
- name: Checkout repository
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515
- name: Set up Node.js
16-
uses: actions/setup-node@v3
16+
uses: actions/setup-node@v4
1717
with:
18-
node-version: 18
18+
node-version-file: .nvmrc
1919
cache: npm
2020
- name: Audit production dependencies
2121
run: npm audit --omit=dev --omit=optional
@@ -25,16 +25,16 @@ jobs:
2525
name: Format check
2626
steps:
2727
- name: Checkout repository
28-
uses: actions/checkout@v3
28+
uses: actions/checkout@v4
2929
with:
3030
fetch-depth: 0
3131
- name: Set up Node.js
32-
uses: actions/setup-node@v3
32+
uses: actions/setup-node@v4
3333
with:
34-
node-version: 18
34+
node-version-file: .nvmrc
3535
cache: npm
3636
- name: Set base and head for Nx affected commands
37-
uses: nrwl/nx-set-shas@v3
37+
uses: nrwl/nx-set-shas@v4
3838
- name: Install dependencies
3939
run: npm ci
4040
- name: Check formatting of affected files
@@ -45,16 +45,16 @@ jobs:
4545
name: Linter
4646
steps:
4747
- name: Checkout repository
48-
uses: actions/checkout@v3
48+
uses: actions/checkout@v4
4949
with:
5050
fetch-depth: 0
5151
- name: Set up Node.js
52-
uses: actions/setup-node@v3
52+
uses: actions/setup-node@v4
5353
with:
54-
node-version: 18
54+
node-version-file: .nvmrc
5555
cache: npm
5656
- name: Set base and head for Nx affected commands
57-
uses: nrwl/nx-set-shas@v3
57+
uses: nrwl/nx-set-shas@v4
5858
- name: Install dependencies
5959
run: npm ci
6060
- name: Lint affected projects
@@ -69,16 +69,16 @@ jobs:
6969
runs-on: ${{ matrix.os }}
7070
steps:
7171
- name: Checkout repository
72-
uses: actions/checkout@v3
72+
uses: actions/checkout@v4
7373
with:
7474
fetch-depth: 0
7575
- name: Set up Node.js
76-
uses: actions/setup-node@v3
76+
uses: actions/setup-node@v4
7777
with:
78-
node-version: 18
78+
node-version-file: .nvmrc
7979
cache: npm
8080
- name: Set base and head for Nx affected commands
81-
uses: nrwl/nx-set-shas@v3
81+
uses: nrwl/nx-set-shas@v4
8282
- name: Install dependencies
8383
run: npm ci
8484
- name: Unit test affected projects
@@ -96,16 +96,16 @@ jobs:
9696
runs-on: ${{ matrix.os }}
9797
steps:
9898
- name: Checkout repository
99-
uses: actions/checkout@v3
99+
uses: actions/checkout@v4
100100
with:
101101
fetch-depth: 0
102102
- name: Set up Node.js
103-
uses: actions/setup-node@v3
103+
uses: actions/setup-node@v4
104104
with:
105-
node-version: 18
105+
node-version-file: .nvmrc
106106
cache: npm
107107
- name: Set base and head for Nx affected commands
108-
uses: nrwl/nx-set-shas@v3
108+
uses: nrwl/nx-set-shas@v4
109109
- name: Install dependencies
110110
run: npm ci
111111
- name: Integration test affected projects
@@ -123,16 +123,16 @@ jobs:
123123
runs-on: ${{ matrix.os }}
124124
steps:
125125
- name: Checkout repository
126-
uses: actions/checkout@v3
126+
uses: actions/checkout@v4
127127
with:
128128
fetch-depth: 0
129129
- name: Set up Node.js
130-
uses: actions/setup-node@v3
130+
uses: actions/setup-node@v4
131131
with:
132-
node-version: 18
132+
node-version-file: .nvmrc
133133
cache: npm
134134
- name: Set base and head for Nx affected commands
135-
uses: nrwl/nx-set-shas@v3
135+
uses: nrwl/nx-set-shas@v4
136136
- name: Install dependencies
137137
run: npm ci
138138
- name: E2E test affected projects
@@ -146,16 +146,16 @@ jobs:
146146
name: Build
147147
steps:
148148
- name: Checkout repository
149-
uses: actions/checkout@v3
149+
uses: actions/checkout@v4
150150
with:
151151
fetch-depth: 0
152152
- name: Set up Node.js
153-
uses: actions/setup-node@v3
153+
uses: actions/setup-node@v4
154154
with:
155-
node-version: 18
155+
node-version-file: .nvmrc
156156
cache: npm
157157
- name: Set base and head for Nx affected commands
158-
uses: nrwl/nx-set-shas@v3
158+
uses: nrwl/nx-set-shas@v4
159159
- name: Install dependencies
160160
run: npm ci
161161
- name: Build affected projects
@@ -171,11 +171,11 @@ jobs:
171171
CP_PROJECT: cli
172172
steps:
173173
- name: Checkout repository
174-
uses: actions/checkout@v3
174+
uses: actions/checkout@v4
175175
- name: Set up Node.js
176-
uses: actions/setup-node@v3
176+
uses: actions/setup-node@v4
177177
with:
178-
node-version: 18
178+
node-version-file: .nvmrc
179179
cache: npm
180180
- name: Install dependencies
181181
run: npm ci
@@ -186,7 +186,7 @@ jobs:
186186
- name: Upload Code PushUp report to portal
187187
run: npx nx run-upload
188188
- name: Save report files as workflow artifact
189-
uses: actions/upload-artifact@v3
189+
uses: actions/upload-artifact@v4
190190
with:
191191
name: code-pushup-report
192192
path: .code-pushup/

.github/workflows/code-coverage.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Checkout the repository
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
2222
- name: Set up Node.js
23-
uses: actions/setup-node@v3
23+
uses: actions/setup-node@v4
2424
with:
25-
node-version: 18
25+
node-version-file: .nvmrc
2626
cache: npm
2727
- name: Install dependencies
2828
run: npm ci
2929
- name: Execute all tests and generate coverage reports
3030
run: npx nx run ${{ matrix.lib }}:${{ matrix.scope }}-test --coverage
3131
- name: Upload coverage reports to Codecov
32-
uses: codecov/codecov-action@v3
33-
env:
32+
uses: codecov/codecov-action@v4
33+
with:
3434
files: ./coverage/${{ matrix.lib }}/${{ matrix.scope }}-tests/coverage-final.json
3535
flags: ${{ matrix.lib }}
36-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
36+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/pr-labeler.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ jobs:
1111
pull-requests: write
1212
steps:
1313
- name: Checkout the repository
14-
uses: actions/checkout@v3
15-
- uses: actions/labeler@v4
14+
uses: actions/checkout@v4
15+
- uses: actions/labeler@v5
1616
with:
17-
dot: true
1817
repo-token: '${{ secrets.GITHUB_TOKEN }}'

.github/workflows/pr-title-commitlint-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout the repository
12-
uses: actions/checkout@v3
12+
uses: actions/checkout@v4
1313
- name: Install dependencies
1414
run: npm ci
1515
- name: Check PR title with commitlint

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ jobs:
3636
with:
3737
fetch-depth: 0
3838
- name: Set up Node.js
39-
uses: actions/setup-node@v3
39+
uses: actions/setup-node@v4
4040
with:
41-
node-version: 18
41+
node-version-file: .nvmrc
4242
cache: npm
4343
- name: Install dependencies
4444
run: npm ci
@@ -73,9 +73,9 @@ jobs:
7373
git config user.name github-actions
7474
git config user.email github-actions@github.com
7575
- name: Set up Node.js
76-
uses: actions/setup-node@v3
76+
uses: actions/setup-node@v4
7777
with:
78-
node-version: 18
78+
node-version-file: .nvmrc
7979
cache: npm
8080
- name: Install dependencies
8181
run: npm ci
@@ -100,7 +100,7 @@ jobs:
100100
CP_ORGANIZATION: code-pushup
101101
CP_PROJECT: cli
102102
- name: Save report files as workflow artifact
103-
uses: actions/upload-artifact@v3
103+
uses: actions/upload-artifact@v4
104104
with:
105105
name: code-pushup-report
106106
path: .code-pushup/

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
lts/*
1+
20.11.0

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nodejs lts
1+
nodejs 20.11.0

packages/cli/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ jobs:
141141
collect-and-upload:
142142
runs-on: ubuntu-latest
143143
steps:
144-
- uses: actions/checkout@v3
145-
- uses: actions/setup-node@v3
144+
- uses: actions/checkout@v4
145+
- uses: actions/setup-node@v4
146146
- run: npm ci
147147
- run: npx code-pushup autorun --upload.apiKey=${{ secrets.PORTAL_API_KEY }}
148148
```

0 commit comments

Comments
 (0)