-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a54079b
commit db10934
Showing
3 changed files
with
32 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Run tests | ||
|
||
on: [push, pull_request] | ||
|
||
strategy: | ||
matrix: | ||
node-version: ['12.x', '14.x', '16.x', '18.x', '20.x'] | ||
platform: ['ubuntu', 'windows'] | ||
|
||
jobs: | ||
test: | ||
name: Test Node.js ${{ matrix.node-version }} on on ${{ matrix.platform }} | ||
runs-on: ${{ matrix.platform }}-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- run: npm ci | ||
|
||
- name: Install webp (windows) | ||
if: matrix.platform == 'windows' | ||
shell: pwsh | ||
run: .\bin\download_webp.ps1 | ||
|
||
- name: Install webp | ||
if: matrix.platform != 'windows' | ||
run: sudo ./bin/install_webp | ||
|
||
- run: npm test |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.