mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-14 15:56:44 +03:00
a696949f6c
* Dropping support for 1.15. * Replaces Go 1.16 Deprecated functions * Update test build flag * Fix import sort and comment * Update github.com/klauspost/compress to v1.15.9 https://github.com/klauspost/compress improved performance and changed Minimum version is 1.16, this should be the final supported release for Go 1.16 (https://github.com/klauspost/compress/commit/6d0019a95afa3221f7522d1f2eed0033b5e79470) .
37 lines
993 B
YAML
37 lines
993 B
YAML
name: Test
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
go-version: [1.16.x, 1.17.x, 1.18.x, 1.19.x]
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-go@v3
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
- name: Get Go cache paths
|
|
id: go-env
|
|
run: |
|
|
echo "::set-output name=cache::$(go env GOCACHE)"
|
|
echo "::set-output name=modcache::$(go env GOMODCACHE)"
|
|
- name: Set up Go cache
|
|
uses: actions/cache@v3
|
|
with:
|
|
key: golangci-lint-${{ runner.os }}-go-${{ hashFiles('go.mod') }}
|
|
restore-keys: golangci-lint-${{ runner.os }}-go-
|
|
path: |
|
|
${{ steps.go-env.outputs.cache }}
|
|
${{ steps.go-env.outputs.modcache }}
|
|
|
|
- run: go version
|
|
- run: go test ./...
|
|
- run: go test -race ./...
|