Fix require.True usage in checkTimeStamp function and improve variable scoping and timing validation in Benchmark_CalculateTimestamp. #376
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
| on: | |
| push: | |
| branches: | |
| - master | |
| - main | |
| paths: | |
| - "**" | |
| - "!docs/**" | |
| - "!**.md" | |
| pull_request: | |
| paths: | |
| - "**" | |
| - "!docs/**" | |
| - "!**.md" | |
| name: Test | |
| jobs: | |
| Build: | |
| strategy: | |
| matrix: | |
| go-version: [1.23.x, 1.24.x] | |
| platform: [ubuntu-latest, windows-latest, macos-latest, macos-13] | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - name: Fetch Repository | |
| uses: actions/checkout@v4 | |
| - name: Install Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| - name: Install gotestsum | |
| run: go install gotest.tools/gotestsum@latest | |
| - name: Test | |
| run: gotestsum -f testname -- ./... -race -count=1 -shuffle=on | |
| - name: Test | |
| run: gotestsum -f testname -- ./... -race -count=1 -coverprofile=coverage.txt -covermode=atomic -shuffle=on | |
| - name: Upload coverage reports to Codecov | |
| if: ${{ matrix.platform == 'ubuntu-latest' && matrix.go-version == '1.24.x' }} | |
| uses: codecov/codecov-action@v5.4.3 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| file: ./coverage.txt | |
| flags: unittests | |
| slug: gofiber/utils |