-
Notifications
You must be signed in to change notification settings - Fork 55
64 lines (54 loc) · 2.4 KB
/
pr-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
52
53
54
55
56
57
58
59
60
61
62
63
64
name: PR tests
on:
pull_request:
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
permissions:
contents: read
deployments: read
pull-requests: write # needed to write comment
statuses: write
jobs:
build:
runs-on: ubuntu-latest
name: Build and test
steps:
- name: Checkout sources
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 #v3.5.3
- name: Use Node.js
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
with:
node-version: 18
check-latest: true
registry-url: "https://registry.npmjs.org/"
scope: "@talend"
cache: "yarn"
- name: Install
run: yarn install --frozen-lockfile
- name: Test
run: yarn test --coverage --coverageReporters json-summary
- name: Jest Coverage Comment
uses: MishaKav/jest-coverage-comment@41b5ca01d1250de84537448d248b8d18152cb277 #1.0.23
with:
multiple-files: |
assets-api, ./packages/assets-api/coverage/coverage-summary.json
cmf, ./packages/cmf/coverage/coverage-summary.json
cmf-cqrs, ./packages/cmf-cqrs/coverage/coverage-summary.json
cmf-router, ./packages/cmf-router/coverage/coverage-summary.json
components, ./packages/components/coverage/coverage-summary.json
containers, ./packages/containers/coverage/coverage-summary.json
dataviz, ./packages/dataviz/coverage/coverage-summary.json
design-system, ./packages/design-system/coverage/coverage-summary.json
faceted-search, ./packages/faceted-search/coverage/coverage-summary.json
flow-designer, ./packages/flow-designer/coverage/coverage-summary.json
forms, ./packages/forms/coverage/coverage-summary.json
http, ./packages/http/coverage/coverage-summary.json
sagas, ./packages/sagas/coverage/coverage-summary.json
stepper, ./packages/stepper/coverage/coverage-summary.json
utils, ./packages/utils/coverage/coverage-summary.json
- name: Check design-tokens
run: |
cd packages/design-tokens
node ./scripts/compare.js src/light/_index.scss src/dark/_index.scss