mirror of https://github.com/gofiber/fiber.git
39 lines
759 B
YAML
39 lines
759 B
YAML
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- main
|
|
paths:
|
|
- "**"
|
|
- "!docs/**"
|
|
- "!**.md"
|
|
pull_request:
|
|
paths:
|
|
- "**"
|
|
- "!docs/**"
|
|
- "!**.md"
|
|
|
|
name: Test
|
|
jobs:
|
|
Build:
|
|
strategy:
|
|
matrix:
|
|
go-version: [1.20.x, 1.21.x]
|
|
platform: [ubuntu-latest, windows-latest, macos-latest]
|
|
runs-on: ${{ matrix.platform }}
|
|
steps:
|
|
- name: Fetch Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Go
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
- name: Run Test
|
|
uses: nick-fields/retry@v2
|
|
with:
|
|
max_attempts: 3
|
|
timeout_minutes: 15
|
|
command: go test ./... -v -race -count=1
|