This repository has been archived by the owner on May 24, 2023. It is now read-only.
Merge pull request #132 from gofiber/dependabot/go_modules/github.com… #325
This file contains 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 | |
pull_request: | |
name: Tests | |
jobs: | |
Tests: | |
name: Tests | |
strategy: | |
matrix: | |
go-version: | |
- 1.18.x | |
- 1.20.x | |
platform: | |
- ubuntu-latest | |
- windows-latest | |
runs-on: '${{ matrix.platform }}' | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Setup Golang caches | |
uses: actions/cache@v3 | |
with: | |
# In order: | |
# * Module download cache | |
# * Build cache (Linux) | |
# * Build cache (Mac) | |
# * Build cache (Windows) | |
path: | | |
~/go/pkg/mod | |
~/.cache/go-build | |
~/Library/Caches/go-build | |
~\AppData\Local\go-build | |
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go-${{ matrix.go-version }}- | |
- name: Fetch Repository | |
uses: actions/checkout@v3.5.2 | |
- name: Run Test | |
run: go test ./... -v -race |