Skip to content

fixed Handling errors in the wrong place (#481) #427

fixed Handling errors in the wrong place (#481)

fixed Handling errors in the wrong place (#481) #427

Workflow file for this run

name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
merge_group:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go:
- '1.22'
- '1.23'
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Install goimports
run: go install golang.org/x/tools/cmd/goimports@latest
- name: Generate code
run: python generate-code.py
- name: run codecov.sh
run: bash script/codecov.sh
- name: go vet
run: go vet $(go list ./... | grep -v /examples/)
- name: Compile example scripts
run: |
for file in $(find ./examples/ -name '*.go'); do
dir=$(dirname $file)
pushd $dir
go build -o /dev/null
popd
done
- name: Publish to codecov.io
run: bash <(curl -s https://codecov.io/bash)