Skip to content

Commit b2987e5

Browse files
authored
chore: update GitHub Actions to use latest versions of actions and Node.js (#38)
1 parent 3efc794 commit b2987e5

6 files changed

Lines changed: 28 additions & 28 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
name: CI
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v6
2222

2323
- name: Check environment variables and Docker login
2424
run: |
@@ -31,18 +31,18 @@ jobs:
3131
echo "${GITHUB_TOKEN}" | docker login ghcr.io -u hasadna --password-stdin
3232
3333
- name: Cache node modules
34-
uses: actions/cache@v4
34+
uses: actions/cache@v5
3535
with:
3636
path: ~/.npm
3737
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
3838
restore-keys: |
3939
${{ runner.os }}-npm-
4040
4141
- name: Set up Docker Buildx
42-
uses: docker/setup-buildx-action@v3
42+
uses: docker/setup-buildx-action@v4
4343

4444
- name: Cache Docker layers
45-
uses: actions/cache@v4
45+
uses: actions/cache@v5
4646
with:
4747
path: /tmp/.buildx-cache
4848
key: ${{ runner.os }}-buildx-${{ github.sha }}

.github/workflows/claude.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
actions: read # Required for Claude to read CI results on PRs
2929
steps:
3030
- name: Checkout repository
31-
uses: actions/checkout@v4
31+
uses: actions/checkout@v6
3232
with:
3333
fetch-depth: 1
3434

.github/workflows/dockerfile-test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,29 +25,29 @@ jobs:
2525
runs-on: ubuntu-latest
2626
steps:
2727
- name: Checkout repository
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@v6
2929

3030
- name: Cache node modules
31-
uses: actions/cache@v4
31+
uses: actions/cache@v5
3232
with:
3333
path: ~/.npm
3434
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
3535
restore-keys: |
3636
${{ runner.os }}-npm-
3737
3838
- name: Set up Docker Buildx
39-
uses: docker/setup-buildx-action@v3
39+
uses: docker/setup-buildx-action@v4
4040

4141
- name: Cache Docker layers
42-
uses: actions/cache@v4
42+
uses: actions/cache@v5
4343
with:
4444
path: /tmp/.buildx-cache
4545
key: ${{ runner.os }}-buildx-${{ github.sha }}
4646
restore-keys: |
4747
${{ runner.os }}-buildx-
4848
4949
- name: Test Dockerfile build
50-
uses: docker/build-push-action@v5
50+
uses: docker/build-push-action@v7
5151
with:
5252
context: .
5353
file: ./Dockerfile

.github/workflows/lint-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ jobs:
1515
name: Validate Pull Request title
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: amannn/action-semantic-pull-request@v5
18+
- uses: amannn/action-semantic-pull-request@v6
1919
env:
2020
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ jobs:
1717
name: Lint Test
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v6
2121

2222
- name: Set up Node.js
23-
uses: actions/setup-node@v4
23+
uses: actions/setup-node@v6
2424
with:
25-
node-version: latest
25+
node-version: 24
2626
cache: npm
2727

2828
- name: Cache node modules
29-
uses: actions/cache@v4
29+
uses: actions/cache@v5
3030
with:
3131
path: ~/.npm
3232
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
@@ -43,16 +43,16 @@ jobs:
4343
name: Mocha Test
4444
runs-on: ubuntu-latest
4545
steps:
46-
- uses: actions/checkout@v4
46+
- uses: actions/checkout@v6
4747

4848
- name: Set up Node.js
49-
uses: actions/setup-node@v4
49+
uses: actions/setup-node@v6
5050
with:
51-
node-version: latest
51+
node-version: 24
5252
cache: npm
5353

5454
- name: Cache node modules
55-
uses: actions/cache@v4
55+
uses: actions/cache@v5
5656
with:
5757
path: ~/.npm
5858
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
@@ -66,12 +66,12 @@ jobs:
6666
run: npx mocha --reporter json --reporter-option output=reports/test-results.json
6767

6868
- name: Upload test report
69-
uses: actions/upload-artifact@v4
69+
uses: actions/upload-artifact@v7
7070
with:
7171
name: test-results
7272
path: 'reports/test-results.json'
7373

74-
- uses: dorny/test-reporter@v2
74+
- uses: dorny/test-reporter@v3
7575
if: always()
7676
with:
7777
artifact: test-results
@@ -86,7 +86,7 @@ jobs:
8686
runs-on: ubuntu-latest
8787
steps:
8888
- name: Comment on PR
89-
uses: marocchino/sticky-pull-request-comment@v2.9.4
89+
uses: marocchino/sticky-pull-request-comment@v3.0.4
9090
with:
9191
GITHUB_TOKEN: ${{ github.token }}
9292
header: test-results
@@ -97,16 +97,16 @@ jobs:
9797
name: Test Whit Coverage
9898
runs-on: ubuntu-latest
9999
steps:
100-
- uses: actions/checkout@v4
100+
- uses: actions/checkout@v6
101101

102102
- name: Set up Node.js
103-
uses: actions/setup-node@v4
103+
uses: actions/setup-node@v6
104104
with:
105-
node-version: latest
105+
node-version: 24
106106
cache: npm
107107

108108
- name: Cache node modules
109-
uses: actions/cache@v4
109+
uses: actions/cache@v5
110110
with:
111111
path: ~/.npm
112112
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
@@ -120,7 +120,7 @@ jobs:
120120
run: npm run test:coverage
121121

122122
- name: Upload coverage report
123-
uses: actions/upload-artifact@v4
123+
uses: actions/upload-artifact@v7
124124
with:
125125
name: coverage-report
126126
path: coverage/

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:24.8.0-alpine3.22@sha256:3e843c608bb5232f39ecb2b25e41214b958b0795914707374c8acc28487dea17
1+
FROM node:24.16.0-alpine3.23@sha256:2bdb65ed1dab192432bc31c95f94155ca5ad7fc1392fb7eb7526ab682fa5bf14
22
ENV NODE_ENV=production
33
WORKDIR /usr/src/app
44
COPY package*.json ./

0 commit comments

Comments
 (0)