Skip to content

Commit

Permalink
Add GitHub Action for test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Aug 11, 2021
1 parent 3ac968d commit c466c69
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Cross-OS Tests

on: [push, pull_request]

jobs:
test:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
node:
- 12
- 14
- 16

runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} (Node v${{ matrix.node }})

steps:
- uses: actions/checkout@v2
- run: |
git config --global init.defaultBranch main
git config --global user.name User
git config --global user.email user@example.org
- run: npm install
- run: npm test

0 comments on commit c466c69

Please sign in to comment.