Skip to content

Commit

Permalink
Add GitHub Actions CI Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzzy committed Jun 23, 2021
1 parent 37f7376 commit 185ea69
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Node.js CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Test
run: npm run test -- --coverage --verbose --ci
- name: Build
run: npm run build
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1

0 comments on commit 185ea69

Please sign in to comment.