Skip to content

Fix browser not stop during aborts (e.g. SIGTERM) #2124

Fix browser not stop during aborts (e.g. SIGTERM)

Fix browser not stop during aborts (e.g. SIGTERM) #2124

Workflow file for this run

name: Lint
on:
# Enable manually triggering this workflow via the API or web UI
workflow_dispatch:
pull_request:
defaults:
run:
shell: bash
jobs:
deps:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.x
check-latest: true
- name: Check dependencies
run: |
go version
test -z "$(go mod tidy && git status --porcelain)"
go mod verify
- name: Check code generation
run: |
go install github.com/alvaroloes/enumer@v1.1.2
go install github.com/mailru/easyjson/easyjson@v0.7.7
test -z "$(go generate ./... && git status --porcelain)"
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.x
check-latest: true
- name: Retrieve golangci-lint version
run: |
echo "::set-output name=Version::$(head -n 1 "${GITHUB_WORKSPACE}/.golangci.yml" | tr -d '# ')"
id: version
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: ${{ steps.version.outputs.Version }}
only-new-issues: true