-
Notifications
You must be signed in to change notification settings - Fork 8
41 lines (31 loc) · 904 Bytes
/
ci.yaml
File metadata and controls
41 lines (31 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# workflow name
name: ci
# on events
on: [push, pull_request]
# jobs to run
jobs:
test:
runs-on: ubuntu-18.04
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 12.13
- name: Install dependencies
run: |
yarn policies set-version
yarn install --frozen-lockfile --network-timeout 1000000
- name: Lint style and types
run: yarn run lint && yarn run check-types
- name: Run unit tests
run: yarn run test:unit && yarn run test:components
- name: Run e2e tests
run: yarn run test:e2e
- name: Publish code coverage
uses: codecov/codecov-action@v1
with:
file: ./coverage/lcov.info
flags: unit
fail_ci_if_error: false