Skip to content

Commit 1d81229

Browse files
authored
Merge pull request #459 from kaovilai/imp1
chore: update GitHub Actions workflows to use latest action versions and improve configurations
2 parents 22f96b3 + aecc832 commit 1d81229

File tree

3 files changed

+18
-11
lines changed

3 files changed

+18
-11
lines changed

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ jobs:
4040

4141
steps:
4242
- name: Checkout repository
43-
uses: actions/checkout@v3
43+
uses: actions/checkout@v4
4444

4545
# Initializes the CodeQL tools for scanning.
4646
- name: Initialize CodeQL
47-
uses: github/codeql-action/init@v2
47+
uses: github/codeql-action/init@v3
4848
with:
4949
languages: ${{ matrix.language }}
5050
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -58,7 +58,7 @@ jobs:
5858
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
5959
# If this step fails, then you should remove it and run the build manually (see below)
6060
- name: Autobuild
61-
uses: github/codeql-action/autobuild@v2
61+
uses: github/codeql-action/autobuild@v3
6262

6363
# ℹ️ Command-line programs to run using the OS shell.
6464
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -71,6 +71,6 @@ jobs:
7171
# ./location_of_script_within_repo/buildscript.sh
7272

7373
- name: Perform CodeQL Analysis
74-
uses: github/codeql-action/analyze@v2
74+
uses: github/codeql-action/analyze@v3
7575
with:
7676
category: "/language:${{matrix.language}}"

.github/workflows/dependency-review.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: 'Checkout Repository'
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919
- name: 'Dependency Review'
20-
uses: actions/dependency-review-action@v2
20+
uses: actions/dependency-review-action@v3

.github/workflows/test.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Testing
22

3-
on: [pull_request]
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
- main
49

510
jobs:
611
unit-test:
@@ -9,11 +14,12 @@ jobs:
914
matrix:
1015
node-version: [20.x]
1116
steps:
12-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v4
1318
- name: Use Node.js ${{ matrix.node-version }}
14-
uses: actions/setup-node@v2
19+
uses: actions/setup-node@v3
1520
with:
1621
node-version: ${{ matrix.node-version }}
22+
cache: 'npm'
1723
- name: Install dependencies
1824
run: npm install
1925
- name: Run Unit Tests
@@ -24,11 +30,12 @@ jobs:
2430
matrix:
2531
node-version: [20.x]
2632
steps:
27-
- uses: actions/checkout@v2
33+
- uses: actions/checkout@v4
2834
- name: Use Node.js ${{ matrix.node-version }}
29-
uses: actions/setup-node@v2
35+
uses: actions/setup-node@v3
3036
with:
3137
node-version: ${{ matrix.node-version }}
38+
cache: 'npm'
3239
- name: Install git
3340
run: |
3441
sudo apt-get update

0 commit comments

Comments
 (0)