-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (41 loc) · 1.09 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
name: frontend-ci
on:
pull_request:
merge_group:
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
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/pnpm-setup
- run: pnpm lint
frontend-ci:
needs: [setup-job]
if: ${{ needs.setup-job.outputs.has-changes == 'true' }}
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/pnpm-setup
- run: pnpm test:turbo