Add comprehensive test coverage for pkg/color, pkg/errors, domain, internal/xml, internal/serializer, and builder API #19
Workflow file for this run
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: [ main, dev ] | |
| pull_request: | |
| branches: [ main, dev ] | |
| jobs: | |
| lint-and-test: | |
| name: Lint, Build and Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: '1.23.x' | |
| cache: false # No external dependencies, so no need to cache | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Run golangci-lint | |
| uses: golangci/golangci-lint-action@v8 | |
| with: | |
| version: v2.5.0 | |
| args: --timeout=5m | |
| only-new-issues: ${{ github.event_name == 'pull_request' }} | |
| - name: Get dependencies | |
| run: go mod download | |
| - name: Build | |
| run: go build -v ./... | |
| - name: Run tests | |
| run: go test -v ./... | |
| - name: Test examples | |
| run: | | |
| cd examples | |
| chmod +x test_all.sh | |
| ./test_all.sh |