test: add edge case tests for safeFloat64ToInt64 and safeDurationSum #206
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: Test | |
| on: | |
| push: | |
| branches: ['*'] | |
| tags: ['v*'] | |
| pull_request: | |
| branches: ['*'] | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| go: ["stable", "oldstable"] | |
| os: ["ubuntu-latest", "ubuntu-24.04-arm"] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ matrix.go }} | |
| - name: Lint | |
| if: matrix.latest | |
| run: make lint | |
| - name: Test | |
| run: make cover | |
| - name: Upload coverage to codecov.io | |
| uses: codecov/codecov-action@v1 |