Skip to content

Add proper go modules caching to v2 and v3 #65

Add proper go modules caching to v2 and v3

Add proper go modules caching to v2 and v3 #65

Workflow file for this run

name: build-v2
on:
push:
branches:
tags:
paths:
- ".github/workflows/ci-v2.yml"
- "v2/**"
pull_request:
paths:
- ".github/workflows/ci-v2.yml"
- "v2/**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: set up go
uses: actions/setup-go@v5
with:
go-version: "1.20"
id: go
cache-dependency-path: v2

Check failure on line 25 in .github/workflows/ci-v2.yml

View workflow run for this annotation

GitHub Actions / build-v2

Invalid workflow file

The workflow is not valid. .github/workflows/ci-v2.yml (Line: 25, Col: 9): Unexpected value 'cache-dependency-path'
- name: checkout
uses: actions/checkout@v4
- name: build and test
run: |
go test -timeout=60s -race -covermode=atomic -coverprofile=$GITHUB_WORKSPACE/profile.cov
go build -race
working-directory: v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: "v1.60.1"
args: --config ../.golangci.yml
working-directory: v2
- name: install goveralls, submit coverage
run: |
go install github.com/mattn/goveralls@latest
goveralls -service="github" -coverprofile=$GITHUB_WORKSPACE/profile.cov
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
working-directory: v2