Skip to content

Action Update: Bump actions/checkout from 3 to 4 #129

Action Update: Bump actions/checkout from 3 to 4

Action Update: Bump actions/checkout from 3 to 4 #129

Workflow file for this run

name: Test Go
on:
push:
branches:
- "**"
tags-ignore:
- '**'
paths:
- '**.go'
- .github/workflows/go.yml
- "go.mod"
- "go.sum"
jobs:
test:
permissions:
security-events: write
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go: [ '1.18', '1.19', '1.20', '1.21']
runs-on: ${{ matrix.os }}
env:
GO111MODULE: on
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
cache: false
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
~/.cache/go-build
~/Library/Caches/go-build
%LocalAppData%\go-build
key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Test
run: make test
- name: Benchmark
run: make bench
- uses: codecov/codecov-action@v3
with:
files: c.out
fail_ci_if_error: true
env_vars: GO,OS
env:
GO: ${ { matrix.go }}
OS: ${{ runner.os }}