-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (39 loc) · 1.03 KB
/
test.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
name: Code Quality Checks
on:
push:
schedule:
- cron: '0 9 * * *' # every day at 9:00
jobs:
test:
runs-on: ubuntu-20.04
timeout-minutes: 10
env:
HUSKY: 0
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Enable Corepack
run: corepack enable
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version-file: '.nvmrc'
- name: Fetch Git history
run: git fetch --no-tags --depth=50 origin main
- name: Install dependencies
uses: bahmutov/npm-install@v1
with:
install-command: yarn --immutable
- name: Lint
run: yarn lint
- name: Check Code-Style Format
run: yarn format
- name: Unit Tests
run: yarn test:unit:ci
- name: Test build
run: yarn build
- name: Publish Code Coverage
uses: coverallsapp/github-action@1.1.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./.coverage/lcov.info