Skip to content

Merge pull request #52 from open-sauced/beta #148

Merge pull request #52 from open-sauced/beta

Merge pull request #52 from open-sauced/beta #148

Workflow file for this run

name: Lint, test, and build
on:
push:
branches:
- main
pull_request:
types:
- opened
- edited
- synchronize
- reopened
permissions:
# So golangci-lint can read the contents of the lint yaml file
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
go-version: 1.21.x
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54.2
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
go-version: 1.21.x
- name: Test
run: make test
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
go-version: 1.21.x
- name: Build go binary
run: make build