-
Notifications
You must be signed in to change notification settings - Fork 14
51 lines (48 loc) · 1.5 KB
/
build-pr.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
name: Build Pull Request
on:
pull_request:
paths:
- 'forge.json'
- 'package.json'
- 'package-lock.json'
- '.eslintrc.json'
- '.stylelintrc'
- '.autorc'
- '.github/workflows/**/*'
- 'src/**/*'
jobs:
wf-config:
name: Workflow Configuration
runs-on: ubuntu-latest
steps:
- name: Check File Changes
uses: dorny/paths-filter@v3
id: file-filter
with:
filters: |
build:
- 'forge.json'
- 'tsconfig.json'
- 'package.json'
- 'package-lock.json'
- '.eslintrc.json'
- '.stylelintrc'
- '.autorc'
- '.github/workflows/**'
- 'src/lib/**'
test:
- 'src/lib/**'
- 'src/test/**'
outputs:
build-files-changed: ${{ steps.file-filter.outputs.build == 'true' }}
test-files-changed: ${{ steps.file-filter.outputs.test == 'true' }}
build:
name: Build and Test
needs: wf-config
uses: tyler-technologies-oss/forge-automation-shared/.github/workflows/wf-build-and-test.yml@v2.10.3
if: ${{ needs.wf-config.outputs.build-files-changed == 'true' || needs.wf-config.outputs.test-files-changed == 'true' }}
with:
BUILD_ENABLED: ${{ needs.wf-config.outputs.build-files-changed == 'true' }}
TESTS_ENABLED: ${{ needs.wf-config.outputs.test-files-changed == 'true' }}
secrets:
NPM_TOKEN: ${{ secrets.FORGE_NPM_TOKEN }}