Skip to content

Commit 15b3483

Browse files
committedAug 13, 2024··
refactor: add CI checks to xc task list
1 parent 7279001 commit 15b3483

File tree

6 files changed

+17
-10
lines changed

6 files changed

+17
-10
lines changed
 

‎.envrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

‎.github/workflows/ci.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,7 @@ jobs:
6363
- uses: DeterminateSystems/magic-nix-cache-action@v3
6464

6565
- name: Generate
66-
run: nix develop --command xc generate
67-
68-
- name: Ensure clean
69-
run: git diff --exit-code
66+
run: nix develop --command xc ensure-generated
7067

7168
ensure-fmt:
7269
runs-on: ubuntu-latest

‎.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,6 @@ result
2626

2727
# Go workspace.
2828
go.work
29+
30+
# direnv
31+
.direnv

‎.version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.2.754
1+
0.2.759

‎README.md

+8
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,14 @@ go run ./cmd/templ fmt .
141141
golangci-lint run --verbose
142142
```
143143

144+
### ensure-generated
145+
146+
Requires: generate
147+
148+
```sh
149+
git diff --exit-code
150+
```
151+
144152
### push-release-tag
145153

146154
Push a semantic version number to Github to trigger the release process.

‎examples/integration-gofiber/home_templ.go

+3-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.