generated from ApollosProject/apollos-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.06 KB
/
tests.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
name: Tests CI
on:
push:
branches:
- master
paths-ignore:
- '**.md'
pull_request:
types: [opened, reopened, synchronize]
jobs:
tests_ci:
runs-on: ubuntu-latest
env:
CI: true
strategy:
matrix:
node-version: [10.19.0]
steps:
- uses: actions/checkout@v2
- name: Setup test environment with node ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: |
npm install -g yarn
yarn
- name: Install client dependencies
run: yarn --ignore-scripts
working-directory: ./apolloschurchapp
- name: Install api dependencies
run: yarn
working-directory: ./apollos-church-api
- name: Lint
run: yarn lint
- name: Test
run: yarn test --forceExit
working-directory: ./apolloschurchapp
- name: Generate Codecov
run: yarn lerna run codecov
- name: Upload to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}