Skip to content

add -cpuprofile flag to gorelo and mast-browser #34

add -cpuprofile flag to gorelo and mast-browser

add -cpuprofile flag to gorelo and mast-browser #34

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- run: go test -race ./...
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: vet and staticcheck (all platforms)
run: |
for p in linux/amd64 linux/arm64 darwin/amd64 darwin/arm64 windows/amd64 windows/arm64; do
echo "=== vet [$p] ==="
GOOS=${p%/*} GOARCH=${p#*/} go vet ./...
echo "=== staticcheck [$p] ==="
GOOS=${p%/*} GOARCH=${p#*/} staticcheck ./...
done
fmt:
name: Format check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- run: go install golang.org/x/tools/cmd/goimports@latest
- name: Check formatting
run: |
make fmt
git diff --exit-code