Skip to content

build(deps): bump actions/setup-go from 6.2.0 to 6.4.0 in the github-actions group #506

build(deps): bump actions/setup-go from 6.2.0 to 6.4.0 in the github-actions group

build(deps): bump actions/setup-go from 6.2.0 to 6.4.0 in the github-actions group #506

Workflow file for this run

name: Go
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
go:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: stable
- name: Check formatting
run: |
gofmt -w -s .
if [[ -n $(git diff --exit-code) ]]; then
echo "Go files were not formatted correctly:"
git diff
exit 1
fi
- name: Build examples
working-directory: examples/go/
run: for DIR in $(find . -name 'go.mod'); do cd $(dirname $DIR); go build || exit 1; cd -; done
- name: Run util tests
working-directory: util/
run: for DIR in $(find . -name 'go.mod'); do cd $(dirname $DIR); go test ./... || exit 1; cd -; done