-
Notifications
You must be signed in to change notification settings - Fork 31
57 lines (56 loc) · 1.53 KB
/
changes.yaml
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
name: changes
on:
workflow_call:
outputs:
js:
description: 'Run JS tests'
value: ${{ jobs.changes.outputs.js }}
go:
description: 'Run Go tests'
value: ${{ jobs.changes.outputs.go }}
e2e:
description: 'Run E2E tests'
value: ${{ jobs.changes.outputs.e2e }}
jobs:
changes:
runs-on: ubuntu-latest
permissions:
pull-requests: read
# Set job outputs to values from filter step
outputs:
js: ${{ steps.filter.outputs.js }}
go: ${{ steps.filter.outputs.go }}
e2e: ${{ steps.filter.outputs.e2e }}
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
js:
- 'public/**'
- 'src/client/**'
- 'src/index.js'
- 'src/setupTests.js'
- 'src/proto/**'
- 'package.json'
- 'package-lock.json'
- '.github/workflows/node_test.yaml'
go:
- 'src/server/**'
- 'src/proto/**'
- 'go.mod'
- 'go.sum'
- '.github/workflows/go_test.yaml'
- 'migrations/**'
e2e:
- 'public/**'
- 'cypress/**'
- 'cypress.config.js'
- 'package.json'
- 'package-lock.json'
- 'src/**'
- 'go.mod'
- 'go.sum'
- '.github/workflows/e2e.yaml'
- 'migrations/**'