Skip to content

chore(deps): update flanksource go dependencies #320

chore(deps): update flanksource go dependencies

chore(deps): update flanksource go dependencies #320

Workflow file for this run

name: Gavel
on:
pull_request:
permissions:
contents: read
jobs:
gavel:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
timeout-minutes: 50
services:
postgres:
image: postgres:16@sha256:47053cd4ee3f096afc744e53e3280de7b29b3670d2f2196c2acc0c6470923c99
ports:
- 5432:5432
env:
POSTGRES_PASSWORD: password
POSTGRES_DB: test
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
DUTY_DB_URL: postgres://postgres:password@localhost:5432/test?sslmode=disable
DUTY_DB_CREATE: "false"
DUTY_DB_DISABLE_RLS: "false"
steps:
- name: Install deps
uses: flanksource/deps@1e2d3aa46edc0971b3b3a15e3fb35ed252304aeb # v1.0.35
with:
tools: |
bun
uv
powershell
postgrest
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
with:
go-version: 1.26.x
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: cache-go-1.26.x-${{ hashFiles('**/go.sum') }}
restore-keys: |
cache-go-1.26.x-
- name: Install golangci-lint
run: |
set -euo pipefail
mkdir -p "$GITHUB_WORKSPACE/.bin"
rm -f "$GITHUB_WORKSPACE/.bin/gavel"
GOBIN="$GITHUB_WORKSPACE/.bin" go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.11.3
file "$GITHUB_WORKSPACE/.bin/golangci-lint"
"$GITHUB_WORKSPACE/.bin/golangci-lint" version
echo "$GITHUB_WORKSPACE/.bin" >> "$GITHUB_PATH"
- uses: flanksource/gavel@1632f718fbd850658c4a04818b800991039f1b74 # v0.0.46
with:
version: v0.0.43
args: >-
-vvvvv test --bench=false
--lint --lint-timeout=15m
--framework ginkgo
--extra-args --label-filter=!e2e
--ignore ./bench
--ignore ./hack
--ignore ./specs
--ignore ./tests/e2e
--ignore ./tests/e2e-blobs
--concurrency=2
--nodes=1
--timeout=35m
--test-timeout=10m
--diagnostics
fail-on-error: "true"