Skip to content

Merge pull request #221 from pberton/patch-1 #583

Merge pull request #221 from pberton/patch-1

Merge pull request #221 from pberton/patch-1 #583

Workflow file for this run

name: Compile & Test
on: [push, pull_request]
jobs:
codegen-verify:
name: Verify code generation
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.23
uses: actions/setup-go@v4
with:
go-version: "1.23"
- uses: actions/checkout@v3
- name: Set up golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.60.3
args: -v --timeout 5m
skip-cache: true
- name: Run go generate
run: |
set -x
sudo apt-get -y update && sudo apt-get -y install git
make generate
git diff | cat
git status --porcelain=v1
test $(git status --porcelain=v1 | wc -l) -eq 0
build:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.23' ]
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Set up golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.60.3
args: -v --timeout 5m
skip-cache: true
- name: Run unit tests
run: make test