Skip to content

Instantly share code, notes, and snippets.

@greeflas
Created September 26, 2023 09:41
Show Gist options
  • Save greeflas/359f3db1fe67634ebc7e00f680c38281 to your computer and use it in GitHub Desktop.
Save greeflas/359f3db1fe67634ebc7e00f680c38281 to your computer and use it in GitHub Desktop.
name: CI
on: [push]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Run tests
run: go test ./...
linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.20'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment