Skip to content

Update actions/checkout action to v4 #134

Update actions/checkout action to v4

Update actions/checkout action to v4 #134

Workflow file for this run

name: build
on:
push:
branches:
- "master"
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19.0
- name: Cache Go modules
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Build
run: |
go build ./...
- name: Tests
run: |
go test ./...