Merge pull request #107 from c64bob/codex/update-content-security-pol… #297
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - name: Install templ | |
| run: go install github.com/a-h/templ/cmd/templ@v0.3.865 | |
| - name: Install tailwindcss | |
| run: | | |
| curl -sSL https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-linux-x64 -o /usr/local/bin/tailwindcss | |
| chmod +x /usr/local/bin/tailwindcss | |
| - name: Go vet | |
| run: go vet ./... | |
| - name: Go test with race detector | |
| run: go test ./... -race | |
| - name: Generate templ files | |
| run: templ generate | |
| - name: Check generated templ diff | |
| run: git diff --exit-code | |
| - name: Tailwind build | |
| run: tailwindcss -i ./web/static/tailwind.input.css -o ./web/static/tailwind.output.css --minify | |
| - name: Check tailwind diff | |
| run: git diff --exit-code | |
| - name: Build Caldo binary | |
| run: make build | |
| docker-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Build Docker image | |
| run: docker build -t caldo:ci . |