Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
Use latest setup-node and pin to Windows 2019. Windows 2022 needs dealing with later.
  • Loading branch information
zbjornson committed Mar 19, 2022
1 parent d7c4673 commit 4273771
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
matrix:
node: [10, 12, 14, 16]
steps:
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- uses: actions/checkout@v2
Expand All @@ -30,12 +30,12 @@ jobs:

Windows:
name: Test on Windows
runs-on: windows-latest
runs-on: windows-2019
strategy:
matrix:
node: [10, 12, 14, 16]
steps:
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- uses: actions/checkout@v2
Expand All @@ -45,6 +45,8 @@ jobs:
Expand-Archive gtk.zip -DestinationPath "C:\GTK"
Invoke-WebRequest "https://downloads.sourceforge.net/project/libjpeg-turbo/2.0.4/libjpeg-turbo-2.0.4-vc64.exe" -OutFile "libjpeg.exe" -UserAgent NativeHost
.\libjpeg.exe /S
npm install -g node-gyp@latest
npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"}
- name: Install
run: npm install --build-from-source
- name: Test
Expand All @@ -57,7 +59,7 @@ jobs:
matrix:
node: [10, 12, 14, 16]
steps:
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- uses: actions/checkout@v2
Expand All @@ -68,13 +70,13 @@ jobs:
- name: Install
run: npm install --build-from-source
- name: Test
run: npm test
run: npm test

Lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: 14
- uses: actions/checkout@v2
Expand Down

0 comments on commit 4273771

Please sign in to comment.