Skip to content

docs: strict-contracts retro for issue #5 (#7) #40

docs: strict-contracts retro for issue #5 (#7)

docs: strict-contracts retro for issue #5 (#7) #40

Workflow file for this run

name: CI

Check failure on line 1 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

(Line: 20, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.RELEASES_TOKEN != '', (Line: 35, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.RELEASES_TOKEN != ''
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
GOPRIVATE: github.com/GoCodeAlone/*
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Configure Git for private repos
if: ${{ secrets.RELEASES_TOKEN != '' }}
run: git config --global url."https://x-access-token:${{ secrets.RELEASES_TOKEN }}@github.com/".insteadOf "https://github.com/"
- run: go test -race ./...
- run: go vet ./...
strict-contracts:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Configure Git for private repos
if: ${{ secrets.RELEASES_TOKEN != '' }}
run: git config --global url."https://x-access-token:${{ secrets.RELEASES_TOKEN }}@github.com/".insteadOf "https://github.com/"
- name: Validate strict plugin contracts
run: |
WFCTL_VERSION=$(go list -m -f '{{.Version}}' github.com/GoCodeAlone/workflow)
go run github.com/GoCodeAlone/workflow/cmd/wfctl@${WFCTL_VERSION} plugin validate --file plugin.json --strict-contracts