2021-12-04 16:42:11 +00:00
|
|
|
name: Go presubmit
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- default
|
|
|
|
pull_request:
|
|
|
|
types: [opened, reopened, synchronize]
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Go presubmit
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
go-version: ['1.16', '1.17']
|
|
|
|
os: ['ubuntu-latest']
|
|
|
|
steps:
|
|
|
|
- name: Install Go ${{ matrix.go-version }}
|
2022-02-06 07:06:32 +00:00
|
|
|
uses: actions/setup-go@v2
|
2021-12-04 16:42:11 +00:00
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: creachadair/go-presubmit-action@default
|