Skip to content

GitHub actions: fix warning: restore cache failed #39

GitHub actions: fix warning: restore cache failed

GitHub actions: fix warning: restore cache failed #39

Workflow file for this run

name: test
on:
push:
paths-ignore:
- "**.md"
- "LICENSE"
- "didder.1"
pull_request:
paths-ignore:
- "**.md"
- "LICENSE"
- "didder.1"
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go-version: ["1.20", "1.21"]
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
cache: true
cache-dependency-path: **/go.sum

Check failure on line 28 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

You have an error in your yaml syntax on line 28
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Test
run: make