fixed handling of closing structure without proper opening #20
This file contains 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
# This workflow will build a golang project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
name: Go | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
types: [opened, reopened, synchronize] | |
schedule: | |
- cron: '15 3 * * 0' | |
jobs: | |
build: | |
name: CI Build | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.22' | |
- name: Setup tools | |
run: | | |
go install golang.org/x/lint/golint@latest | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Check Formatting | |
run: | | |
if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then | |
echo "### Go formatting is off, please execute 'gofmt -w -s .' - see following diff: ###" | |
gofmt -s -d . | |
exit 1 | |
fi | |
- name: Test Project | |
run: | | |
make test | |
- name: Build Project | |
run: | | |
make |