Skip to content

ci: add semgrep workflow #418

ci: add semgrep workflow

ci: add semgrep workflow #418

Workflow file for this run

name: Continuous Integration
on:
push:
branches: [main]
pull_request:
permissions:
contents: none
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Configure Go"
uses: actions/setup-go@v5
- name: "Build"
run: go build -v ./...
- name: "Unit Tests"
run: go test $(go list ./... | grep -v /test)
lint:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Configure Go"
uses: actions/setup-go@v5
with:
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
args: --timeout 5m0s