-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (53 loc) · 1.42 KB
/
frontend-ci.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
name: frontend-ci
on:
pull_request:
merge_group:
env:
working-directory: frontend
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
setup-job:
runs-on: ubuntu-latest
timeout-minutes: 3
outputs:
has-changes: ${{ steps.changes.outputs.has-changes }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
has-changes:
- '.github/workflows/frontend-ci.yml'
- '.github/actions/pnpm-setup/**'
- './frontend/**'
frontend-lint:
needs: [setup-job]
if: ${{ needs.setup-job.outputs.has-changes == 'true' }}
runs-on: ubuntu-latest
timeout-minutes: 15
defaults:
run:
working-directory: ${{ env.working-directory }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/pnpm-setup
with:
working-directory: ${{ env.working-directory }}
- run: pnpm lint
frontend-ci:
needs: [setup-job]
if: ${{ needs.setup-job.outputs.has-changes == 'true' }}
runs-on: ubuntu-latest
timeout-minutes: 15
defaults:
run:
working-directory: ${{ env.working-directory }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/pnpm-setup
with:
working-directory: ${{ env.working-directory }}
- run: pnpm test:turbo