Skip to content

Commit

Permalink
Add Github Actions CI, remove Circle CI (#494)
Browse files Browse the repository at this point in the history
- Remove Circle CI
- Add GitHub Actions CI 

This will make sure we are testing macOS since Circle CI has been failing for months.
  • Loading branch information
styfle committed Feb 12, 2020
1 parent 205f11a commit e2977af
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 51 deletions.
50 changes: 0 additions & 50 deletions .circleci/config.yml

This file was deleted.

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:
- master
tags:
- '!*'
pull_request:

jobs:
test:
name: Node ${{ matrix.node }} and ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
node: [10]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Print Node Version
run: node --version
- name: Install Dependencies
run: yarn install
- name: Build Test Binary
run: yarn build-test-binary
- name: Build
run: yarn build
- name: Run Tests
run: yarn test
- name: Coverage
if: matrix.os == 'ubuntu-latest'
run: yarn test-coverage
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"build": "node scripts/build",
"build-test-binary": "cd test/binary && node-gyp rebuild && cp build/Release/hello.node ../integration/hello.node",
"codecov": "codecov",
"test": "npm run build-test-binary && npm run build && node --expose-gc --max_old_space_size=3072 node_modules/.bin/jest",
"test": "node --expose-gc --max_old_space_size=3072 node_modules/.bin/jest",
"test-coverage": "node --expose-gc --max_old_space_size=3072 node_modules/.bin/jest --coverage --globals \"{\\\"coverage\\\":true}\" && codecov",
"prepublish": "in-publish && npm test || not-in-publish"
},
Expand Down

0 comments on commit e2977af

Please sign in to comment.