chore: improve homebrew workflow with GitHub App authentication #3
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 ] | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: nix develop --command bash -e {0} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@main | |
- uses: DeterminateSystems/flakehub-cache-action@main | |
- run: "true" # warm up the nix store | |
- run: biome ci | |
- run: cd pkg/emitters/websocket/static && bun install | |
- run: cd pkg/emitters/websocket/static && bun run build | |
- run: test -z "$(gofmt -l . | tee /dev/stderr)" | |
- run: go vet ./... | |
- run: go test -v ./... |