Skip to content

fix: suppress help output on runtime errors (#41) #120

fix: suppress help output on runtime errors (#41)

fix: suppress help output on runtime errors (#41) #120

Workflow file for this run

name: CI
on:
push:
branches:
- main # limit to main, because pushes to pull-requested branches are triggered below
pull_request:
# any pull request
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: golangci-lint
uses: golangci/golangci-lint-action@v8
with:
version: v2.8.0
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Configure git for E2E tests
run: |
git config --global user.email "ci@github.com"
git config --global user.name "CI"
git config --global init.defaultBranch main
- name: Run tests
run: go test -v -race -coverprofile=coverage.out ./...
- name: Upload coverage
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage.out
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Build
run: go build -v ./...