browser: close the review findings — upload oracle, screenshot cap, w… #105
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: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.26" | |
| cache-dependency-path: go.sum | |
| - run: gofmt -l . && test -z "$(gofmt -l .)" | |
| - run: go vet ./... | |
| - run: go test ./... | |
| # Real-Chrome browser suite: launches headless Chrome and drives every | |
| # browser tool against local test pages. Ubuntu runners ship Chrome. | |
| browser: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.26" | |
| cache-dependency-path: go.sum | |
| - uses: browser-actions/setup-chrome@v2 | |
| id: chrome | |
| - run: CHROME_TEST=1 CHROME_PATH="${{ steps.chrome.outputs.chrome-path }}" go test -v -timeout 300s ./internal/browser/ |