tests for format_json #15
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: tester-coverage | |
| on: | |
| push: | |
| branches: ["main"] | |
| paths: | |
| - "**.go" | |
| pull_request: | |
| branches: ["main"] | |
| paths: | |
| - "**.go" | |
| jobs: | |
| coverage: | |
| name: Test Coverage | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 3 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.23" | |
| - name: Tests Permissions | |
| run: chmod +x ./.github/workflows/test.sh | |
| - name: Tests | |
| run: ./.github/workflows/test.sh | |
| - name: Upload coverage to summary | |
| run: | | |
| echo "### Test Coverage" >> $GITHUB_STEP_SUMMARY | |
| go tool cover -func=coverage.out | grep total | awk '{print $3}' >> $GITHUB_STEP_SUMMARY |