Skip to content

Commit

Permalink
ci: add the "Test" GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Ginsburg committed Mar 15, 2022
1 parent 3804b2f commit 429a741
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Test

on:
pull_request:
branches:
- master

jobs:
linux:
name: "Node ${{ matrix.node }} on Linux: Test and Lint"
runs-on: ubuntu-latest
strategy:
matrix:
node:
- 10
- 12
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: browser-actions/setup-chrome@latest
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: npm
- run: npm ci
- run: npm run test
windows:
name: "Node ${{ matrix.node }} on Windows: Test and Lint"
runs-on: windows-latest
defaults:
run:
shell: bash
strategy:
matrix:
node:
- 10
- 12
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: npm
- run: npm ci
- run: npm run test

0 comments on commit 429a741

Please sign in to comment.