This repository was archived by the owner on Apr 7, 2026. It is now read-only.
Bug fix #335
This file contains hidden or 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
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - "*" | |
| pull_request: | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| go-version: ["1.22.x"] | |
| os: ["ubuntu-latest"] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Install Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| - name: Check style | |
| run: | | |
| gofmt -w -s . | |
| go generate ./... | |
| git diff --exit-code | |
| - name: Go tests | |
| run: | | |
| go vet -composites=false ./... | |
| go test -v ./... | |
| - name: End-to-end CLI tests | |
| run: | | |
| ./test/bats/bin/bats ./test/goose.bats |