Merge pull request #113 from PDOK/bump-gokoala-1.8.17 #71
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: Tests | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| jobs: | |
| test: | |
| name: Run on Ubuntu | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Clone the code | |
| uses: actions/checkout@v4 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Running Tests | |
| run: | | |
| go mod tidy | |
| make test | |
| echo "removing generated code from coverage results" | |
| mv cover.out cover.out.tmp && grep -vP "ogcapi-operator/(api/v1alpha1|cmd|test/utils)/" cover.out.tmp > cover.out | |
| diffs="$(git status -s)" | |
| if [[ -n "$diffs" ]]; then echo "there are diffs after make test: $diffs"; exit 250; fi | |
| - name: Update coverage report | |
| uses: ncruces/go-coverage-report@v0 | |
| with: | |
| coverage-file: cover.out | |
| report: true | |
| chart: false | |
| amend: false | |
| reuse-go: true | |
| if: | | |
| github.event_name == 'push' | |
| continue-on-error: false |