Skip to content

Commit 39882e7

Browse files
build: upgrade actions and remove semantic-release dry runs
1 parent 0e12dbd commit 39882e7

File tree

3 files changed

+16
-28
lines changed

3 files changed

+16
-28
lines changed

.github/workflows/codeql-analysys.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ jobs:
3535

3636
steps:
3737
- name: Checkout repository
38-
uses: actions/checkout@v2
38+
uses: actions/checkout@v4
3939

4040
# Initializes the CodeQL tools for scanning.
4141
- name: Initialize CodeQL
42-
uses: github/codeql-action/init@v1
42+
uses: github/codeql-action/init@v3
4343
with:
4444
languages: ${{ matrix.language }}
4545
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -50,7 +50,7 @@ jobs:
5050
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5151
# If this step fails, then you should remove it and run the build manually (see below)
5252
- name: Autobuild
53-
uses: github/codeql-action/autobuild@v1
53+
uses: github/codeql-action/autobuild@v3
5454

5555
# ℹ️ Command-line programs to run using the OS shell.
5656
# 📚 https://git.io/JvXDl
@@ -64,4 +64,4 @@ jobs:
6464
# make release
6565

6666
- name: Perform CodeQL Analysis
67-
uses: github/codeql-action/analyze@v1
67+
uses: github/codeql-action/analyze@v3

.github/workflows/release.yml

+10-5
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ jobs:
1717
release-outputs: ${{ steps.release.outputs }}
1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: 21
2126

2227
- name: Semantic Release [PUBLISH]
2328
uses: ./.github/actions/semantic
@@ -32,11 +37,11 @@ jobs:
3237
- name: Set up Docker Buildx
3338
if: steps.release.outputs.new_release_published == 'true'
3439
id: buildx
35-
uses: docker/setup-buildx-action@v2
40+
uses: docker/setup-buildx-action@v3
3641

3742
- name: Cache Docker layers
3843
if: steps.release.outputs.new_release_published == 'true'
39-
uses: actions/cache@v2
44+
uses: actions/cache@v4
4045
with:
4146
path: /tmp/.buildx-cache
4247
key: ${{ runner.os }}-buildx-${{ github.sha }}
@@ -45,15 +50,15 @@ jobs:
4550
4651
- name: Login to Docker Hub
4752
if: steps.release.outputs.new_release_published == 'true'
48-
uses: docker/login-action@v2
53+
uses: docker/login-action@v3
4954
with:
5055
username: ${{ secrets.DOCKER_USERNAME }}
5156
password: ${{ secrets.DOCKER_PASSWORD }}
5257

5358
- name: Docker Build and Push
5459
if: steps.release.outputs.new_release_published == 'true'
5560
id: docker_build
56-
uses: docker/build-push-action@v4
61+
uses: docker/build-push-action@v5
5762
with:
5863
builder: ${{ steps.buildx.outputs.name }}
5964
push: true

.github/workflows/test.yml

+2-19
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,14 @@ jobs:
1515
node-version: [20.x, 21.x, 22.x]
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919

2020
- name: Setup Node.js ${{ matrix.node-version }}
21-
uses: actions/setup-node@v3
21+
uses: actions/setup-node@v4
2222
with:
2323
node-version: ${{ matrix.node-version }}
2424

2525
- name: Install node modules and run tests
2626
run: |
2727
npm ci --ignore-scripts
2828
npm test
29-
30-
- name: Upload coverage to Codecov
31-
uses: codecov/codecov-action@v3
32-
with:
33-
file: coverage/cobertura-coverage.xml
34-
fail_ci_if_error: false
35-
36-
- name: Semantic Release [DRY-RUN]
37-
if: ${{ matrix.node-version == '20.x' }}
38-
uses: ./.github/actions/semantic
39-
id: release
40-
env:
41-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
43-
with:
44-
publish: false
45-
add-summary: true

0 commit comments

Comments
 (0)