Skip to content

Commit

Permalink
feat(github actions): Create tester job
Browse files Browse the repository at this point in the history
  • Loading branch information
segayuu committed Mar 2, 2020
1 parent 2717d09 commit c8b6d82
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/tester.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Tester

on: [push, pull_request]

jobs:
tester:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['10.x', '12.x', '13.x']
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node_version }}
- name: Cache NPM dependencies
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-npm-cache
restore-keys: ${{ runner.OS }}-npm-cache
- name: Install Dependencies
run: npm install
- name: Test
run: npm test
env:
CI: true

0 comments on commit c8b6d82

Please sign in to comment.