Skip to content

Bump actions/cache from 3 to 4 #43

Bump actions/cache from 3 to 4

Bump actions/cache from 3 to 4 #43

Workflow file for this run

---
name: CI
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
go:
- 1.13.x # ubuntu focal
- 1.15.x # debian bullseye
- 1.18.x # ubuntu jammy
- 1.19.x # debian bookworm
- 1.x # latest
name: Go ${{ matrix.go }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- if: ${{ matrix.go != '1.13.x' }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
cache: true
# Workaround for https://github.com/actions/setup-go/issues/304.
# TODO: Remove workaround after next release of setup-go
- if: ${{ matrix.go == '1.13.x' }}
name: Run actions/setup-go@v5 (cache disabled)
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
cache: false
- run: go build -v github.com/rkoesters/xkcd/...
- run: go test -v -cover github.com/rkoesters/xkcd/...
- run: go vet -v github.com/rkoesters/xkcd/...