Skip to content

refactor: Access Control plugin #131

refactor: Access Control plugin

refactor: Access Control plugin #131

Workflow file for this run

name: CI/CD
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
GO_VERSION: "1.26.1"
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Install C dependencies
run: sudo apt-get update && sudo apt-get install -y build-essential
- name: Build
run: make build
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Install C dependencies
run: sudo apt-get update && sudo apt-get install -y build-essential
- name: Run tests
run: make test
coverage:
name: Test Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Install C dependencies
run: sudo apt-get update && sudo apt-get install -y build-essential
- name: Run tests with coverage
run: make test-coverage
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Install golangci-lint
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
- name: Lint
run: golangci-lint run --timeout=5m
format:
name: Format Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
- name: Check formatting
run: make fmt
- name: Verify no formatting changes
run: git diff --exit-code
vet:
name: Vet
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Install C dependencies
run: sudo apt-get update && sudo apt-get install -y build-essential
- name: Run go vet
run: make vet
ci:
name: Full CI Check
runs-on: ubuntu-latest
needs: [build, test, coverage, lint, format, vet]
steps:
- name: All checks passed
run: echo "✅ All CI checks passed successfully!"