Merge pull request #342 from Lachee/patch-sentry-v7 #41
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: [master, main] | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Create embed placeholders | |
| run: | | |
| # Frontend placeholder (embedded via go:embed) | |
| mkdir -p internal/frontend/dist | |
| echo '<!DOCTYPE html><html><body>placeholder</body></html>' > internal/frontend/dist/index.html | |
| # VarDumper PHP parser placeholders (embedded via go:embed per-platform). | |
| # Each GOOS/GOARCH has its own embed_*.go, so we need a stub for every | |
| # target that CI compiles. | |
| mkdir -p modules/vardumper/bin | |
| echo 'placeholder' > modules/vardumper/bin/vardumper-parser-linux-amd64 | |
| echo 'placeholder' > modules/vardumper/bin/vardumper-parser-windows-amd64.exe | |
| - name: Build | |
| run: go build ./cmd/buggregator | |
| - name: Build (windows/amd64) | |
| env: | |
| GOOS: windows | |
| GOARCH: amd64 | |
| CGO_ENABLED: "0" | |
| run: go build ./cmd/buggregator | |
| - name: Vet | |
| run: go vet ./... | |
| - name: Test | |
| run: go test ./... -short -count=1 |