github.com/boomhut/fiber/v2@v2.0.0-20230603160335-b65c856e57d3/.github/workflows/test.yml (about)

     1  on:
     2    push:
     3      branches:
     4        - master
     5        - main
     6      paths:
     7        - '**'
     8        - '!docs/**'
     9        - '!**.md'
    10    pull_request:
    11      paths:
    12        - '**'
    13        - '!docs/**'
    14        - '!**.md'
    15  name: Test
    16  jobs:
    17    Build:
    18      strategy:
    19        matrix:
    20          go-version: [1.17.x, 1.18.x, 1.19.x, 1.20.x]
    21          platform: [ubuntu-latest, windows-latest, macos-latest]
    22      runs-on: ${{ matrix.platform }}
    23      steps:
    24      - name: Install Go
    25        uses: actions/setup-go@v4
    26        with:
    27          go-version: ${{ matrix.go-version }}
    28      - name: Setup Golang caches
    29        uses: actions/cache@v3
    30        with:
    31            # In order:
    32            # * Module download cache
    33            # * Build cache (Linux)
    34            # * Build cache (Mac)
    35            # * Build cache (Windows)
    36            path: |
    37                ~/go/pkg/mod
    38                ~/.cache/go-build
    39                ~/Library/Caches/go-build
    40                ~\AppData\Local\go-build
    41            key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}
    42            restore-keys: |
    43                ${{ runner.os }}-go-${{ matrix.go-version }}-
    44      - name: Fetch Repository
    45        uses: actions/checkout@v3
    46      - name: Run Test
    47        uses: nick-fields/retry@v2
    48        with:
    49          max_attempts: 3
    50          timeout_minutes: 15
    51          command: go test ./... -v -race