Skip to content

Commit 792926f

Browse files
committed
Clean up github actions
1 parent e4e9897 commit 792926f

File tree

4 files changed

+37
-45
lines changed

4 files changed

+37
-45
lines changed

.github/file-filters.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/files-changed.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: files changed
1+
name: files-changed
22

33
on:
44
workflow_call:
@@ -14,7 +14,7 @@ on:
1414
value: ${{ jobs.files-changed.outputs.frontend }}
1515

1616
jobs:
17-
files-changed:
17+
detect:
1818
name: detect which files changed
1919
runs-on: ubuntu-latest
2020
timeout-minutes: 3
@@ -25,8 +25,22 @@ jobs:
2525
frontend: ${{ steps.changes.outputs.frontend }}
2626
steps:
2727
- uses: actions/checkout@v3
28-
- name: Check for backend file changes
29-
uses: dorny/paths-filter@v2
28+
- uses: dorny/paths-filter@v2
3029
id: changes
3130
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"

.github/workflows/pull-compliance-docs.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/pull-compliance.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
- run: make lint-backend
2626
env:
2727
TAGS: bindata sqlite sqlite_unlock_notify
28+
2829
lint-go-windows:
2930
if: needs.files-changed.outputs.backend == 'true'
3031
needs: files-changed
@@ -41,6 +42,7 @@ jobs:
4142
TAGS: bindata sqlite sqlite_unlock_notify
4243
GOOS: windows
4344
GOARCH: amd64
45+
4446
lint-go-gogit:
4547
if: needs.files-changed.outputs.backend == 'true'
4648
needs: files-changed
@@ -55,6 +57,7 @@ jobs:
5557
- run: make lint-go
5658
env:
5759
TAGS: bindata gogit sqlite sqlite_unlock_notify
60+
5861
checks-backend:
5962
if: needs.files-changed.outputs.backend == 'true'
6063
needs: files-changed
@@ -67,6 +70,7 @@ jobs:
6770
check-latest: true
6871
- run: make deps-backend deps-tools
6972
- run: make --always-make checks-backend # ensure the "go-licenses" make target runs
73+
7074
frontend:
7175
if: needs.files-changed.outputs.frontend == 'true'
7276
needs: files-changed
@@ -79,6 +83,7 @@ jobs:
7983
- run: make deps-frontend
8084
- run: make lint-frontend
8185
- run: make checks-frontend
86+
8287
backend:
8388
if: needs.files-changed.outputs.backend == 'true'
8489
needs: files-changed
@@ -113,3 +118,16 @@ jobs:
113118
env:
114119
GOOS: linux
115120
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

0 commit comments

Comments
 (0)