-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (47 loc) · 1.3 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
name: "Frontend CI"
on:
workflow_dispatch:
push:
branches:
- dev
tags:
- "v*"
paths:
- "src/frontend/**"
pull_request:
branches:
- main
- test
- dev
paths:
- "src/frontend/**"
- ".github/workflows/frontend-ci.yml"
types: [opened, reopened, labeled, synchronize, ready_for_review]
# Sets permissions of the GITHUB_TOKEN to allow creating checks and updating PR
permissions:
contents: read
checks: write
pull-requests: write
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
cancel-in-progress: true
env:
NODE_VERSION: "20"
WORKFLOW_SHORT_NAME: "frontend"
FRONTEND_PATH: "src/frontend"
TRAILING_AGENT_WORK_PATH: "/home/runner/work/test/test/"
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }}
defaults:
run:
working-directory: ${{ env.FRONTEND_PATH }}
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: ./.github/actions/frontend-build
with:
working_directory: ${{ env.FRONTEND_PATH }}