Skip to content

Instantly share code, notes, and snippets.

@jnbdz
Created February 9, 2024 21:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnbdz/2aae54d813792ffbf412e565548efc36 to your computer and use it in GitHub Desktop.
Save jnbdz/2aae54d813792ffbf412e565548efc36 to your computer and use it in GitHub Desktop.
name: Go
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
- name: Code quality
run: go vet ./...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment