Skip to content

Commit

Permalink
refactor: add CI checks to xc task list
Browse files Browse the repository at this point in the history
  • Loading branch information
a-h committed Aug 13, 2024
1 parent 7279001 commit 15b3483
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 10 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
5 changes: 1 addition & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,7 @@ jobs:
- uses: DeterminateSystems/magic-nix-cache-action@v3

- name: Generate
run: nix develop --command xc generate

- name: Ensure clean
run: git diff --exit-code
run: nix develop --command xc ensure-generated

ensure-fmt:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ result

# Go workspace.
go.work

# direnv
.direnv
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.754
0.2.759
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,14 @@ go run ./cmd/templ fmt .
golangci-lint run --verbose
```

### ensure-generated

Requires: generate

```sh
git diff --exit-code
```

### push-release-tag

Push a semantic version number to Github to trigger the release process.
Expand Down
8 changes: 3 additions & 5 deletions examples/integration-gofiber/home_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 15b3483

Please sign in to comment.