Skip to content

Commit

Permalink
chore: move CI to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed May 14, 2021
1 parent d852731 commit 294ee09
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on:
push:
branches:
- '**'
tags-ignore:
- '**'

pull_request:
branches:
- 'master'

jobs:
test:
name: Node.js v${{ matrix.nodejs }}
runs-on: ubuntu-latest
strategy:
matrix:
nodejs: [8, 10, 12, 14]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.nodejs }}

- name: (env) cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-${{ matrix.nodejs }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-${{ matrix.nodejs }}-

- name: Install
run: npm ci

- name: Run Tests
run: npm test

0 comments on commit 294ee09

Please sign in to comment.