Skip to content

Commit

Permalink
Update GH Actions test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MetRonnie authored and kinow committed Oct 18, 2021
1 parent c065835 commit 67946b2
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
name: CI

on: [push, pull_request]
on:
push:
branches: [master]
pull_request:

jobs:
build:
unit-test-and-build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '12'
node-version: '16'
- name: Cache node modules
uses: actions/cache@v2.1.6
with:
Expand All @@ -24,14 +27,14 @@ jobs:
yarn run lint --no-fix
- name: Test
run: |
yarn run coverage:unit
yarn run coverage:unit --colors
- name: Docs
uses: andstor/jsdoc-action@v1
with:
config_file: jsdoc.conf.json
# TODO: upload to GH pages?
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2.1.0
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage/lcov.info
Expand All @@ -58,7 +61,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '12'
node-version: '16'
- name: e2e
uses: cypress-io/github-action@v2
with:
Expand All @@ -70,7 +73,7 @@ jobs:
env:
CYPRESS_baseUrl: http://localhost:8080/
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2.1.0
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage/lcov.info
Expand Down

0 comments on commit 67946b2

Please sign in to comment.