Skip to content

Commit 95bfcdc

Browse files
committed
ci: mac updates
1 parent 11c9dbf commit 95bfcdc

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
env:
1010
CI: true
1111
NODE_ENV: test
12+
NODE_VER: 22
1213

1314
jobs:
1415
lint:
@@ -21,7 +22,7 @@ jobs:
2122
run: sudo /etc/init.d/mysql start
2223
- uses: actions/setup-node@v4
2324
with:
24-
node-version: 20
25+
node-version: ${{ env.NODE_VER }}
2526
- uses: actions/checkout@v4
2627
- run: npm install
2728
- name: Initialize MySQL
@@ -43,17 +44,19 @@ jobs:
4344
- id: get
4445
uses: msimerson/node-lts-versions@v1
4546
outputs:
46-
lts: ${{ steps.get.outputs.lts }}
4747
active: ${{ steps.get.outputs.active }}
48+
maintenance: ${{ steps.get.outputs.maintenance }}
49+
lts: ${{ steps.get.outputs.lts }}
50+
current: ${{ steps.get.outputs.current }}
51+
min: ${{ steps.get.outputs.min }}
4852

4953
test:
5054
needs: [ get-lts ]
5155
runs-on: ${{ matrix.os }}
5256
strategy:
5357
matrix:
5458
os: [ubuntu-latest]
55-
# node-version: ${{ fromJson(needs.get-lts.outputs.active) }}
56-
node-version: [ 20 ]
59+
node-version: ${{ fromJson(needs.get-lts.outputs.active) }}
5760
fail-fast: false
5861
steps:
5962
- run: sudo /etc/init.d/mysql start
@@ -70,15 +73,13 @@ jobs:
7073
runs-on: macos-latest
7174
strategy:
7275
matrix:
73-
# node-version: ${{ fromJson(needs.get-lts.outputs.active) }}
74-
node-version: [ 20 ]
76+
node-version: ${{ fromJson(needs.get-lts.outputs.active) }}
7577
fail-fast: false
7678
steps:
7779
- name: Install & Start MySQL
7880
run: |
7981
brew install mysql@8.4
80-
brew tap homebrew/services
81-
brew services start mysql
82+
brew services start mysql@8.4
8283
- uses: actions/checkout@v4
8384
- uses: actions/setup-node@v4
8485
name: Node ${{ matrix.node-version }} on ${{ matrix.os }}
@@ -94,8 +95,7 @@ jobs:
9495
runs-on: windows-latest
9596
strategy:
9697
matrix:
97-
node-version: [ 20 ]
98-
# node-version: ${{ fromJson(needs.get-lts.outputs.active) }}
98+
node-version: ${{ fromJson(needs.get-lts.outputs.active) }}
9999
experimental: [true]
100100
fail-fast: false
101101
steps:

0 commit comments

Comments
 (0)