Skip to content

Commit f3801d8

Browse files
authored
Split out project-site CI
Let's see if its any faster.
1 parent 718cb74 commit f3801d8

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ name: CI
22

33
on:
44
push:
5-
branches: [ main ]
5+
# branches: [ main ]
66
pull_request:
77

88

99
jobs:
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

0 commit comments

Comments
 (0)