This repository has been archived by the owner on Oct 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (57 loc) · 1.73 KB
/
checks.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
53
54
55
56
57
58
name: Run Checks
on:
pull_request:
types:
- opened
- synchronize
jobs:
test-unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '16.x'
- name: Install dependencies
run: yarn install
- name: Create a .version.js file
run: |
touch .version.js && echo "echo \"export const version = 'test'\" > .version.js" | bash -
- name: Run tests
run: yarn test:unit:ci --coverage
- name: Code Coverage Report
uses: romeovs/[email protected]
with:
title: Code Coverage Report - ${{ github.event.pull_request.head.ref }}
github-token: ${{ secrets.TOKEN_GITHUB }}
lcov-file: ./coverage/lcov.info
delete-old-comments: true
test-web-components:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '16.x'
- name: Install dependencies
run: yarn install
- name: Create a .version.js file
run: |
touch .version.js && echo "echo \"export const version = 'test'\" > .version.js" | bash -
- name: Run tests
run: yarn test:unit:web-components
build:
runs-on: ubuntu-latest
needs: [test-unit, test-web-components]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '16.x'
- name: Install dependencies
run: yarn install
- name: Create a .version.js file
run: |
touch .version.js && echo "echo \"export const version = 'test'\" > .version.js" | bash -
- name: Build
run: yarn build