File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed
Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ name: CI
22
33on :
44 push :
5- branches : [ main ]
5+ # branches: [ main ]
66 pull_request :
77
88
99jobs :
10- build :
10+ basics :
1111 name : basics
1212 runs-on : ubuntu-latest
1313 steps :
@@ -51,15 +51,32 @@ jobs:
5151
5252 - name : Run Go Tests
5353 run : go test -v ./...
54+
55+ # Fail if any changes were written to any source files or generated untracked files
56+ - run : git add -A && git diff --cached --exit-code
57+
58+ # Project site
59+ site :
60+ name : site
61+ runs-on : ubuntu-latest
62+ steps :
63+ - name : Checkout code
64+ uses : actions/checkout@v4
5465
55- # Project site
5666 - name : Setup Node.js
5767 uses : actions/setup-node@v4
5868 with :
5969 node-version : 20
6070 cache : ' npm'
6171 cache-dependency-path : web/project-site/package-lock.json
6272
73+ # Backend
74+ - name : Setup Go
75+ uses : actions/setup-go@v5
76+ with :
77+ go-version : ' 1.24.1'
78+ cache : true
79+
6380 - name : Install swag
6481 run : go install github.com/swaggo/swag/cmd/swag@latest
6582
You can’t perform that action at this time.
0 commit comments