Skip to content

ci: configure GitHub Actions workflow for building and testing #1

ci: configure GitHub Actions workflow for building and testing

ci: configure GitHub Actions workflow for building and testing #1

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
services:
docker:
image: docker:27-dind
options: --privileged
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.25'
- name: Cache Go modules
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Download deps (root)
run: go mod download
- name: Download deps (control-plane)
run: cd vortex-control-plane && go mod download
- name: Lint
run: |
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
golangci-lint run ./...
- name: Unit tests (root)
run: go test ./... -race -coverprofile=coverage.out
- name: Unit tests (control-plane)
run: cd vortex-control-plane && go test ./... -race -coverprofile=coverage.out
- name: Vet
run: go vet ./...
- name: Security scan
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...
- name: Security scan (control-plane)
run: |
cd vortex-control-plane
govulncheck ./...