Skip to content

Instantly share code, notes, and snippets.

@swanwish
Created May 26, 2022 06:24
Show Gist options
  • Save swanwish/11e9a59d6a1c15320ec81b6819319fe2 to your computer and use it in GitHub Desktop.
Save swanwish/11e9a59d6a1c15320ec81b6819319fe2 to your computer and use it in GitHub Desktop.
common go.yml for github actions
name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment