mirror of
https://github.com/gofiber/fiber.git
synced 2025-08-14 12:40:04 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
55 lines
1.3 KiB
YAML
55 lines
1.3 KiB
YAML
name: Test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- main
|
|
paths-ignore:
|
|
- "**/*.md"
|
|
pull_request:
|
|
paths-ignore:
|
|
- "**/*.md"
|
|
|
|
jobs:
|
|
unit:
|
|
strategy:
|
|
matrix:
|
|
go-version: [1.24.x]
|
|
platform: [ubuntu-latest, windows-latest, macos-latest, macos-13]
|
|
runs-on: ${{ matrix.platform }}
|
|
steps:
|
|
- name: Fetch Repository
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Install Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
- name: Test
|
|
run: go run gotest.tools/gotestsum@latest -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 }}
|
|
flags: unittests
|
|
slug: gofiber/fiber
|
|
verbose: true
|
|
|
|
repeated:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Fetch Repository
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Install Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: stable
|
|
|
|
- name: Test
|
|
run: go run gotest.tools/gotestsum@latest -f testname -- ./... -race -count=15 -shuffle=on
|