Created
May 26, 2022 06:24
-
-
Save swanwish/11e9a59d6a1c15320ec81b6819319fe2 to your computer and use it in GitHub Desktop.
common go.yml for github actions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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