Skip to content

SHA pin first-party GitHub Actions #15

SHA pin first-party GitHub Actions

SHA pin first-party GitHub Actions #15

Workflow file for this run

name: Go
on: [push, pull_request]
jobs:
build:
name: Build
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
go: [1.13, 1.14, 1.15, 1.16, 1.17, 1.18, 1.19, 1.20]
runs-on: ${{matrix.os}}
steps:
- name: Set up Go
uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492 # v2.2.0
with:
go-version: ^${{matrix.go}}
- name: Check out code into the Go module directory
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
- name: Get dependencies
run: go get -v -t -d ./...
- name: Test
run: go test -v .