Skip to content

fix: preserve admin auth effective config #107

fix: preserve admin auth effective config

fix: preserve admin auth effective config #107

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
env:
GOPRIVATE: github.com/GoCodeAlone/*
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Configure Git for private repos
env:
RELEASES_TOKEN: ${{ secrets.RELEASES_TOKEN }}
run: |
if [ -n "$RELEASES_TOKEN" ]; then
git config --global url."https://x-access-token:${RELEASES_TOKEN}@github.com/".insteadOf "https://github.com/"
fi
- run: go test -race ./...
- run: go vet ./...
plugin-contracts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Configure Git for private repos
env:
RELEASES_TOKEN: ${{ secrets.RELEASES_TOKEN }}
run: |
if [ -n "$RELEASES_TOKEN" ]; then
git config --global url."https://x-access-token:${RELEASES_TOKEN}@github.com/".insteadOf "https://github.com/"
fi
- name: Fail fast if contract files are missing
run: |
for file in plugin.json plugin.contracts.json; do
test -f "$file" || (echo "::error::$file not found" && exit 1)
done
- name: Derive wfctl version from go.mod
id: wfctl-ver
run: |
ver=$(go list -m -f '{{.Version}}' github.com/GoCodeAlone/workflow)
echo "version=$ver" >> "$GITHUB_OUTPUT"
- uses: GoCodeAlone/setup-wfctl@bcd880980f5bbe8d192d0c20ff6279d25331f956
with:
version: ${{ steps.wfctl-ver.outputs.version }}
- name: Validate plugin contracts
run: wfctl plugin validate --file plugin.json --strict-contracts