Skip to content

build: install script should avoid sudo and install to local bin folder #6

build: install script should avoid sudo and install to local bin folder

build: install script should avoid sudo and install to local bin folder #6

Workflow file for this run

name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
go-checks:
name: go-checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- uses: jdx/mise-action@c37c93293d6b742fc901e1406b8f764f6fb19dac # v2
- name: Cache Go modules and build cache
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('control-plane/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: go vet
run: mise run vet
- name: go fix (check for drift)
run: mise run fix
- name: golangci-lint
run: mise run lint
- name: go test
run: mise run test:ci
- name: Upload coverage
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: go-coverage
path: control-plane/coverage.out