Skip to content

Tidy github actions and added some quality gate checks #1

Tidy github actions and added some quality gate checks

Tidy github actions and added some quality gate checks #1

Workflow file for this run

name: PR
on:
pull_request:
branches:
- main
push:
branches:
- main
merge_group:
types:
- checks_requested
# Make sure the workflow is only ever run for the latest
# changes in the PR.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint
needs: gen-diff

Check failure on line 23 in .github/workflows/pr.yaml

View workflow run for this annotation

GitHub Actions / PR

Invalid workflow file

The workflow is not valid. .github/workflows/pr.yaml (Line: 23, Col: 12): Job 'lint' depends on unknown job 'gen-diff'.
runs-on: ubuntu-latest
strategy:
matrix:
go:
- "1.21"
- "1.22"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
cache: false
- run: echo "GOLANGCI_LINT_VERSION=$(go list -m -f '{{.Version}}' github.com/golangci/golangci-lint)" >> $GITHUB_ENV
- uses: golangci/golangci-lint-action@v4
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
build:
env:
GO111MODULE: on
strategy:
matrix:
go-version: [ 1.21.x ]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Run build
run: make build