-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (40 loc) · 1.16 KB
/
fe_base.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
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@v4
- uses: ./.github/actions/fe
- run: yarn run vue-tsc
eslint:
runs-on: ${{ inputs.runs-on }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/fe
- run: yarn run eslint .
type-coverage:
runs-on: ${{ inputs.runs-on }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/fe
- id: cache-restore
uses: actions/cache/restore@v4
with:
path: ${{ github.workspace }}/fe/.type-coverage
key: ${{ runner.os }}-fe-type-coverage
restore-keys: ${{ runner.os }}-fe-type-coverage-
- run: yarn run type-coverage --show-relative-path --cache --detail --strict --at-least 95
- uses: actions/cache/save@v4
if: always() && steps.cache-restore.outputs.cache-hit != 'true'
with:
path: ${{ github.workspace }}/fe/.type-coverage
key: ${{ steps.cache-restore.outputs.cache-primary-key }}