Skip to content

chore: adds the pizza-action GitHub action to the project #306

chore: adds the pizza-action GitHub action to the project

chore: adds the pizza-action GitHub action to the project #306

Workflow file for this run

name: "Lint, test, and build"
on:
workflow_call:
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@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.59.1
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- uses: extractions/setup-just@v2
- name: Test
run: just test
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- uses: extractions/setup-just@v2
- name: Build Go binary
run: just build