File tree 4 files changed +37
-45
lines changed 4 files changed +37
-45
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- name : files changed
1
+ name : files- changed
2
2
3
3
on :
4
4
workflow_call :
14
14
value : ${{ jobs.files-changed.outputs.frontend }}
15
15
16
16
jobs :
17
- files-changed :
17
+ detect :
18
18
name : detect which files changed
19
19
runs-on : ubuntu-latest
20
20
timeout-minutes : 3
25
25
frontend : ${{ steps.changes.outputs.frontend }}
26
26
steps :
27
27
- uses : actions/checkout@v3
28
- - name : Check for backend file changes
29
- uses : dorny/paths-filter@v2
28
+ - uses : dorny/paths-filter@v2
30
29
id : changes
31
30
with :
32
- filters : .github/file-filters.yml
31
+ filters :
32
+ docs :
33
+ - " **/*.md"
34
+ - " docs/**"
35
+
36
+ backend :
37
+ - " **/*.go"
38
+ - " **/*.tmpl"
39
+ - " go.mod"
40
+ - " go.sum"
41
+
42
+ frontend :
43
+ - " **/*.js"
44
+ - " web_src/**"
45
+ - " package.json"
46
+ - " package-lock.json"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 25
25
- run : make lint-backend
26
26
env :
27
27
TAGS : bindata sqlite sqlite_unlock_notify
28
+
28
29
lint-go-windows :
29
30
if : needs.files-changed.outputs.backend == 'true'
30
31
needs : files-changed
41
42
TAGS : bindata sqlite sqlite_unlock_notify
42
43
GOOS : windows
43
44
GOARCH : amd64
45
+
44
46
lint-go-gogit :
45
47
if : needs.files-changed.outputs.backend == 'true'
46
48
needs : files-changed
55
57
- run : make lint-go
56
58
env :
57
59
TAGS : bindata gogit sqlite sqlite_unlock_notify
60
+
58
61
checks-backend :
59
62
if : needs.files-changed.outputs.backend == 'true'
60
63
needs : files-changed
67
70
check-latest : true
68
71
- run : make deps-backend deps-tools
69
72
- run : make --always-make checks-backend # ensure the "go-licenses" make target runs
73
+
70
74
frontend :
71
75
if : needs.files-changed.outputs.frontend == 'true'
72
76
needs : files-changed
79
83
- run : make deps-frontend
80
84
- run : make lint-frontend
81
85
- run : make checks-frontend
86
+
82
87
backend :
83
88
if : needs.files-changed.outputs.backend == 'true'
84
89
needs : files-changed
@@ -113,3 +118,16 @@ jobs:
113
118
env :
114
119
GOOS : linux
115
120
GOARCH : 386
121
+
122
+ docs :
123
+ if : needs.files-changed.outputs.docs == 'true'
124
+ needs : files-changed
125
+ runs-on : ubuntu-latest
126
+ steps :
127
+ - uses : actions/checkout@v3
128
+ - uses : actions/setup-node@v3
129
+ with :
130
+ node-version : 20
131
+ - run : make deps-frontend
132
+ - run : make lint-md
133
+ - run : make docs # test if build could succeed
You can’t perform that action at this time.
0 commit comments