Skip to content

Evm/fourth

Evm/fourth #160

Workflow file for this run

name: tests
on:
pull_request:
push:
branches:
- main
- dev
env:
GO_VERSION: stable
GOLANGCI_LINT_VERSION: v1.60
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Go set up
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Cache Go modules
uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install dependencies
run: go mod tidy
- name: Run tests
run: go test ./... -v