forked from gitify-app/gitify
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (25 loc) · 797 Bytes
/
Copy pathrun-tests.yml
File metadata and controls
35 lines (25 loc) · 797 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
name: Run Tests
on: [push, pull_request]
jobs:
run-unit-tests:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Dependencies
run: yarn install
- name: Run Prettier (Check)
run: yarn prettier:check
- name: Run Typechecking
run: yarn tsc --noEmit
- name: Run Jest
run: yarn test --coverage --runInBand --verbose
- uses: codecov/codecov-action@v1