Skip to content

Commit

Permalink
tests: add GitHub Actions CI (#418)
Browse files Browse the repository at this point in the history
* tests: add GitHub Actions CI

* fix: add missing newline at the end of ci.yml

* fix: add `pull_request` trigger to GitHub Workflows

Co-Authored-By: Michaël Zasso <targos@protonmail.com>

* fix: add missing `npm install`

* fix: add fail-fast: false to ci.yml

Co-Authored-By: XhmikosR <xhmikosr@gmail.com>

* fix: Split npm install and npm run test in ci.yml

Co-authored-by: Michaël Zasso <targos@protonmail.com>
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
  • Loading branch information
3 people committed Sep 23, 2020
1 parent 78f58e0 commit 69aa464
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,22 @@
name: GitHub Actions CI

on: [push, pull_request]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
node-version: [6.x, 8.x, 10.x, 12.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install
run: npm install
- name: npm run test
run: npm run test

0 comments on commit 69aa464

Please sign in to comment.