Skip to content

Commit 8551ec8

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

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: CI
55

66
on:
77
push:
8-
branches: [main]
8+
branches: [main, chore/node-upgrades]
99
pull_request:
1010
branches: [main]
1111

@@ -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 }}
@@ -74,20 +74,20 @@ jobs:
7474
- name: Save build folder
7575
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
7676
with:
77-
name: build
77+
name: build-${{ matrix.node-version }}-mongo-${{ matrix.mongodb-version }}
7878
if-no-files-found: error
79-
path: build
8079

80+
path: build
8181
- name: Download the build folders
82-
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5
82+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # ratchet:actions/[email protected]
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

0 commit comments

Comments
 (0)