Skip to content

Commit

Permalink
build: move CI to GitHub actions (#451)
Browse files Browse the repository at this point in the history
* Update nodejs.yml

* drop node 8 support

* test on windows and macos

* fix previous commit

* proper matrix settings

* Update nodejs.yml

* use cache

* only test master branch

* tweaks

* try to fix it on windows

* xD

* welp

* test

* test

* try using a relative path

* cannot get cache working, gg

* fix line ending
  • Loading branch information
egoist authored Nov 2, 2019
1 parent a487170 commit 3e17d29
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* text=auto
* text=auto eol=lf
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Node CI

on:
pull_request:
push:
branches:
- master
paths-ignore:
- '**.md'

jobs:
test:
name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
matrix:
node-version: [10.x, 12.x]
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v1

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: yarn

- name: Test
run: yarn test
env:
CI: true

0 comments on commit 3e17d29

Please sign in to comment.