Skip to content

Commit

Permalink
chore: add GitHub <ci> action
Browse files Browse the repository at this point in the history
This aims to replace our Travis CI builds.
  • Loading branch information
nikku authored and azeghers committed Nov 29, 2020
1 parent cd28b4c commit f9385d3
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: ci
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '10.x'
- name: Cache Node.js modules
uses: actions/cache@v2
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install dependencies
run: npm ci
- name: Build
run: COVERAGE=1 npm run all
- name: Upload coverage
run: npx codecov

0 comments on commit f9385d3

Please sign in to comment.