Skip to content

Commit ce55423

Browse files
committed
chore: upgrade node & mongo versions in ci, actions upgrades
1 parent 7e625cd commit ce55423

File tree

2 files changed

+23
-24
lines changed

2 files changed

+23
-24
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,31 +18,31 @@ jobs:
1818

1919
strategy:
2020
matrix:
21-
node-version: [20.x]
22-
mongodb-version: [4.4]
21+
node-version: [20.x, 22.x, 24.x]
22+
mongodb-version: ['6.0', '7.0', '8.0']
2323

2424
steps:
2525
- name: Harden Runner
26-
uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2.13.3
26+
uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # ratchet:step-security/harden-runner@v2.13.3
2727
with:
2828
egress-policy: audit
2929

30-
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
30+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # ratchet:actions/[email protected]
3131
with:
3232
fetch-depth: 0
3333

3434
- name: Use Node.js ${{ matrix.node-version }}
35-
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
35+
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # ratchet:actions/[email protected]
3636
with:
3737
node-version: ${{ matrix.node-version }}
3838

3939
- name: Start MongoDB
40-
uses: supercharge/mongodb-github-action@315db7fe45ac2880b7758f1933e6e5d59afd5e94 # 1.12.1
40+
uses: supercharge/mongodb-github-action@315db7fe45ac2880b7758f1933e6e5d59afd5e94 # ratchet:supercharge/mongodb-github-action@1.12.1
4141
with:
4242
mongodb-version: ${{ matrix.mongodb-version }}
4343

4444
- name: Install dependencies
45-
run: npm i
45+
run: npm ci
4646

4747
# for now only check the types of the server
4848
# tsconfig isn't quite set up right to respect what vite accepts
@@ -60,7 +60,7 @@ jobs:
6060
npm run test-coverage-ci --workspaces --if-present
6161
6262
- name: Upload test coverage report
63-
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
63+
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # ratchet:codecov/codecov-action@v5.5.1
6464
with:
6565
files: ./coverage/lcov.info
6666
token: ${{ secrets.CODECOV_TOKEN }}
@@ -72,22 +72,22 @@ jobs:
7272
run: npm run build-ui
7373

7474
- name: Save build folder
75-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
75+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # ratchet:actions/upload-artifact@v4
7676
with:
77-
name: build
77+
name: build-${{ matrix.node-version }}-mongo-${{ matrix.mongodb-version }}
7878
if-no-files-found: error
7979
path: build
8080

8181
- name: Download the build folders
82-
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
82+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # ratchet:actions/download-artifact@v5
8383
with:
84-
name: build
84+
name: build-${{ matrix.node-version }}-mongo-${{ matrix.mongodb-version }}
8585
path: build
8686

8787
- name: Run cypress test
88-
uses: cypress-io/github-action@7ef72e250a9e564efb4ed4c2433971ada4cc38b4 # v6.10.4
88+
uses: cypress-io/github-action@7ef72e250a9e564efb4ed4c2433971ada4cc38b4 # ratchet:cypress-io/github-action@v6.10.4
8989
with:
9090
start: npm start &
9191
wait-on: 'http://localhost:3000'
9292
wait-on-timeout: 120
93-
run: npm run cypress:run
93+
command: npm run cypress:run

.github/workflows/codeql.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,31 +51,30 @@ jobs:
5151

5252
steps:
5353
- name: Harden Runner
54-
uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2
54+
uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # ratchet:step-security/[email protected]
5555
with:
5656
egress-policy: audit
5757

5858
- name: Checkout repository
59-
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
59+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # ratchet:actions/[email protected]
6060

6161
# Initializes the CodeQL tools for scanning.
6262
- name: Initialize CodeQL
63-
uses: github/codeql-action/init@497990dfed22177a82ba1bbab381bc8f6d27058f # v3
63+
uses: github/codeql-action/init@267c4672a565967e4531438f2498370de5e8a98d # ratchet:github/codeql-action/[email protected]
6464
with:
6565
languages: ${{ matrix.language }}
6666
# If you wish to specify custom queries, you can do so here or in a config file.
6767
# By default, queries listed here will override any specified in a config file.
6868
# Prefix the list here with "+" to use these queries and those in the config file.
6969

70-
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
71-
# queries: security-extended,security-and-quality
72-
7370
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
7471
# If this step fails, then you should remove it and run the build manually (see below)
72+
7573
- name: Autobuild
76-
uses: github/codeql-action/autobuild@497990dfed22177a82ba1bbab381bc8f6d27058f # v3
74+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
75+
# queries: security-extended,security-and-quality
7776

78-
# ℹ️ Command-line programs to run using the OS shell.
77+
uses: github/codeql-action/autobuild@bffd034ab1518ad839a542b8a7356e13a240e076 # ratchet:github/codeql-action/[email protected]
7978
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
8079

8180
# If the Autobuild fails above, remove it and uncomment the following three lines.
@@ -84,8 +83,8 @@ jobs:
8483
# - run: |
8584
# echo "Run, Build Application using script"
8685
# ./location_of_script_within_repo/buildscript.sh
87-
8886
- name: Perform CodeQL Analysis
89-
uses: github/codeql-action/analyze@497990dfed22177a82ba1bbab381bc8f6d27058f # v3
87+
# ℹ️ Command-line programs to run using the OS shell.
88+
uses: github/codeql-action/analyze@bffd034ab1518ad839a542b8a7356e13a240e076 # ratchet:github/codeql-action/[email protected]
9089
with:
9190
category: '/language:${{matrix.language}}'

0 commit comments

Comments
 (0)