Merge pull request #39 from k-yomo/set-transient-strategy-to-autodetect #98
Workflow file for this run
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
name: Test | |
on: [push] | |
env: | |
GO111MODULE: "on" | |
jobs: | |
build: | |
name: Build, Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Go 1.19 | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.19 | |
id: go | |
- name: Restore Cache | |
uses: actions/[email protected] | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Download Modules | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: go mod download | |
- name: Lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.48 | |
args: --timeout 3m0s | |
- name: Test | |
run: make test | |
- name: Upload coverage to Codecov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./coverage.out | |
fail_ci_if_error: true | |