Merge pull request #399 from sir-gon/develop #125
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: Go CI Tests | |
| on: # yamllint disable-line rule:truthy | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| # The branches below must be a subset of the branches above | |
| branches: ["main"] | |
| workflow_dispatch: | |
| env: | |
| LOG_LEVEL: WARN | |
| jobs: | |
| test: | |
| name: "Go CI Tests" | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: ["windows-2022", "ubuntu-24.04", "macos-14"] | |
| go: ["1.23.x", "1.24.x", "1.25.x"] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ matrix.go }} | |
| check-latest: false | |
| - run: go version | |
| - name: Build | |
| run: go build -v ./... | |
| - name: Test | |
| run: | | |
| go test -v -coverprofile="coverage.out" ./exercises/... | |
| # go tool cover -func=coverage.out |