Skip to content

Commit 6e46eed

Browse files
committed
ci: update node version
1 parent d1459d9 commit 6e46eed

4 files changed

Lines changed: 76 additions & 76 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -9,35 +9,35 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- name: checkout
13-
uses: actions/checkout@v3
12+
- name: checkout
13+
uses: actions/checkout@v3
1414

15-
- name: Use Node.js 20.x
16-
uses: actions/setup-node@v3
17-
with:
18-
node-version: 20.x
19-
20-
- name: Cache node modules
21-
id: cache-npm
22-
uses: actions/cache@v3
23-
with:
24-
path: ~/.npm
25-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
26-
restore-keys: |
27-
${{ runner.os }}-build-${{ env.cache-name }}-
28-
${{ runner.os }}-build-
29-
${{ runner.os }}-
15+
- name: Use Node.js 24.x
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: 24.x
3019

31-
- name: Build & deploy
32-
env:
33-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34-
REACT_APP_NAME: ${{ secrets.REACT_APP_VERSION }}
35-
SENTRY_ENVIRONMENT: ${{ secrets.SENTRY_ENVIRONMENT}}
36-
REACT_APP_VERSION: ${{ secrets.REACT_APP_VERSION }}
37-
REACT_APP_MAP_API_KEY: ${{ secrets.REACT_APP_MAP_API_KEY }}
38-
REACT_APP_GOOGLE_ANALYTICS_API_KEY: ${{ secrets.REACT_APP_GOOGLE_ANALYTICS_API_KEY}}
39-
run: |
40-
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
41-
npm i
42-
npm run build
43-
npx gh-pages --branch gh-pages --dist build -u "github-actions-bot <support+actions@github.com>"
20+
- name: Cache node modules
21+
id: cache-npm
22+
uses: actions/cache@v3
23+
with:
24+
path: ~/.npm
25+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
26+
restore-keys: |
27+
${{ runner.os }}-build-${{ env.cache-name }}-
28+
${{ runner.os }}-build-
29+
${{ runner.os }}-
30+
31+
- name: Build & deploy
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
REACT_APP_NAME: ${{ secrets.REACT_APP_VERSION }}
35+
SENTRY_ENVIRONMENT: ${{ secrets.SENTRY_ENVIRONMENT}}
36+
REACT_APP_VERSION: ${{ secrets.REACT_APP_VERSION }}
37+
REACT_APP_MAP_API_KEY: ${{ secrets.REACT_APP_MAP_API_KEY }}
38+
REACT_APP_GOOGLE_ANALYTICS_API_KEY: ${{ secrets.REACT_APP_GOOGLE_ANALYTICS_API_KEY}}
39+
run: |
40+
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
41+
npm i
42+
npm run build
43+
npx gh-pages --branch gh-pages --dist build -u "github-actions-bot <support+actions@github.com>"

.github/workflows/sonarcloud.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches: [ "main" ]
66
pull_request:
7-
types: [opened, synchronize, reopened]
7+
types: [ opened, synchronize, reopened ]
88

99
jobs:
1010
sonarcloud:
@@ -30,17 +30,17 @@ jobs:
3030
${{ runner.os }}-
3131
3232
# Run tests with coverage
33-
- name: Use Node.js 18.x
33+
- name: Use Node.js 20.x
3434
uses: actions/setup-node@v3
3535
with:
36-
node-version: 18.x
36+
node-version: 20.x
3737

3838
- name: run tests with coverage
3939
run: |
4040
npm ci
41-
npm run test -- --coverage . --watchAll=false
41+
npm run test-coverage
4242
43-
# Send report to sonar
43+
# Send report to sonar
4444
- name: SonarCloud Scan
4545
uses: SonarSource/sonarcloud-github-action@master
4646
env:

.github/workflows/tests.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,27 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-version: [20.x]
15+
node-version: [ 22.x ]
1616

1717
steps:
18-
- uses: actions/checkout@v3
19-
- name: Cache node modules
20-
id: cache-npm
21-
uses: actions/cache@v3
22-
with:
23-
path: ~/.npm
24-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
25-
restore-keys: |
26-
${{ runner.os }}-build-${{ env.cache-name }}-
27-
${{ runner.os }}-build-
28-
${{ runner.os }}-
18+
- uses: actions/checkout@v3
19+
- name: Cache node modules
20+
id: cache-npm
21+
uses: actions/cache@v3
22+
with:
23+
path: ~/.npm
24+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
25+
restore-keys: |
26+
${{ runner.os }}-build-${{ env.cache-name }}-
27+
${{ runner.os }}-build-
28+
${{ runner.os }}-
2929
30-
- name: Use Node.js ${{ matrix.node-version }}
31-
uses: actions/setup-node@v3
32-
with:
33-
node-version: ${{ matrix.node-version }}
30+
- name: Use Node.js ${{ matrix.node-version }}
31+
uses: actions/setup-node@v3
32+
with:
33+
node-version: ${{ matrix.node-version }}
3434

35-
- name: Tests
36-
run: |
37-
npm ci
38-
npm run test
35+
- name: Tests
36+
run: |
37+
npm ci
38+
npm run test

.github/workflows/webpack.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,27 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-version: [19.x, 20.x, 22.x]
15+
node-version: [ 20.x, 22.x, 24.x ]
1616

1717
steps:
18-
- uses: actions/checkout@v3
19-
- name: Cache node modules
20-
id: cache-npm
21-
uses: actions/cache@v3
22-
with:
23-
path: ~/.npm
24-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
25-
restore-keys: |
26-
${{ runner.os }}-build-${{ env.cache-name }}-
27-
${{ runner.os }}-build-
28-
${{ runner.os }}-
29-
30-
- name: Use Node.js ${{ matrix.node-version }}
31-
uses: actions/setup-node@v3
32-
with:
33-
node-version: ${{ matrix.node-version }}
18+
- uses: actions/checkout@v3
19+
- name: Cache node modules
20+
id: cache-npm
21+
uses: actions/cache@v3
22+
with:
23+
path: ~/.npm
24+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
25+
restore-keys: |
26+
${{ runner.os }}-build-${{ env.cache-name }}-
27+
${{ runner.os }}-build-
28+
${{ runner.os }}-
3429
35-
- name: Build
36-
run: |
37-
npm ci
38-
npm run build
30+
- name: Use Node.js ${{ matrix.node-version }}
31+
uses: actions/setup-node@v3
32+
with:
33+
node-version: ${{ matrix.node-version }}
34+
35+
- name: Build
36+
run: |
37+
npm ci
38+
npm run build

0 commit comments

Comments
 (0)