-
Notifications
You must be signed in to change notification settings - Fork 3
71 lines (62 loc) · 2.24 KB
/
Copy pathfe_base.yaml
File metadata and controls
71 lines (62 loc) · 2.24 KB
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
65
66
67
68
69
70
71
name: fe/base
on:
workflow_call:
inputs:
runs-on:
required: true
type: string
defaults:
run:
working-directory: fe
jobs:
tsc:
runs-on: ${{ inputs.runs-on }}
steps:
- uses: actions/checkout@v7
- uses: ./.github/actions/fe
- run: yarn run vue-tsc -p .nuxt/tsconfig.app.json
eslint:
runs-on: ${{ inputs.runs-on }}
steps:
- uses: actions/checkout@v7
- uses: ./.github/actions/fe
- run: yarn run eslint
stylelint:
runs-on: ${{ inputs.runs-on }}
steps:
- uses: actions/checkout@v7
- uses: ./.github/actions/fe
- id: cache-restore
uses: actions/cache/restore@v6
with:
path: ${{ github.workspace }}/fe/.stylelintcache
key: ${{ runner.os }}-fe-stylelintcache
restore-keys: ${{ runner.os }}-fe-stylelintcache-
- uses: xt0rted/stylelint-problem-matcher@v1
- id: firstStylelint
run: yarn run stylelint --cache --custom-formatter stylelint-actions-formatters '**/*.vue'
- if: always() && (steps.firstStylelint.outcome == 'success' || steps.firstStylelint.outcome == 'failure')
run: yarn run stylelint --cache --custom-formatter stylelint-actions-formatters '**/*.css'
- uses: actions/cache/save@v6
if: always() && steps.cache-restore.outputs.cache-hit != 'true'
with:
path: ${{ github.workspace }}/fe/.stylelintcache
key: ${{ steps.cache-restore.outputs.cache-primary-key }}
type-coverage:
runs-on: ${{ inputs.runs-on }}
steps:
- uses: actions/checkout@v7
- uses: ./.github/actions/fe
- id: cache-restore
uses: actions/cache/restore@v6
with:
path: ${{ github.workspace }}/fe/.type-coverage
key: ${{ runner.os }}-fe-type-coverage
restore-keys: ${{ runner.os }}-fe-type-coverage-
# https://github.com/plantain-00/type-coverage/issues/145
- run: yarn run type-coverage --show-relative-path --cache --detail --strict --at-least 95
- uses: actions/cache/save@v6
if: always() && steps.cache-restore.outputs.cache-hit != 'true'
with:
path: ${{ github.workspace }}/fe/.type-coverage
key: ${{ steps.cache-restore.outputs.cache-primary-key }}