Skip to content

Commit

Permalink
Run tests using GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeschastny committed Oct 10, 2023
1 parent a54079b commit db10934
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 30 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
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
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

21 changes: 0 additions & 21 deletions appveyor.yml

This file was deleted.

0 comments on commit db10934

Please sign in to comment.