-
-
Notifications
You must be signed in to change notification settings - Fork 13
51 lines (42 loc) · 1.2 KB
/
ui-pr.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: UI PR
on:
pull_request:
branches: main
jobs:
ui-pr:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: ui
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: "18.16.1"
- name: Install Yarn
run: |
corepack enable
corepack prepare yarn@stable --activate
- name: yarn install
run: yarn install --immutable
- name: Run Tests
run: npx vitest --coverage.enabled true
- name: "Report Coverage"
if: always()
uses: davelosert/vitest-coverage-report-action@v2
with:
working-directory: ui
json-summary-path: html/ui/coverage-summary.json
json-final-path: html/ui/coverage-final.json
- name: Post the knip results
run: yarn knip --max-issues=${{ vars.KNIP_MAX_ISSUES }}
- name: Run ESLint
run: yarn lint --max-warnings ${{ vars.LINT_MAX_WARNINGS }}
- name: Danger
if: github.actor != 'dependabot[bot]'
run: yarn danger ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}