Skip to content

chore: update CI workflows to Go 1.26 and codify AI agent branch rules #27

chore: update CI workflows to Go 1.26 and codify AI agent branch rules

chore: update CI workflows to Go 1.26 and codify AI agent branch rules #27

Workflow file for this run

# PR validation workflow for Launchpad

Check failure on line 1 in .github/workflows/pr.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pr.yml

Invalid workflow file

(Line: 20, Col: 5): you may only define one of `paths` and `paths-ignore` for a single event
# Triggered on PRs to main branch.
name: PR Validation
permissions:
contents: read
pull-requests: write # Required for PR comments or labels
on:
pull_request:
branches: [ main ]
paths:
- "**.go"
- "go.mod"
- "go.sum"
- "test/**"
- "examples/**"
- ".github/workflows/**"
paths-ignore:
- "**.md"
- "docs/**"
jobs:
lint:
name: Lint Code
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.26"
cache: true
- name: Run golangci-lint
run: make lint
unit-test:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.26"
cache: true
- name: Run unit tests
run: make unit-test
integration-test:
name: Integration Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.26"
cache: true
- name: Run integration tests
run: make integration-test
security-scan:
name: Security Scan
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.26"
cache: true
- name: Install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
- name: Run security scan
run: govulncheck ./...