Skip to content

fix(output-options): correctly reference x-go-type-skip-optional-pointer in allOf #2711

fix(output-options): correctly reference x-go-type-skip-optional-pointer in allOf

fix(output-options): correctly reference x-go-type-skip-optional-pointer in allOf #2711

Workflow file for this run

name: Ensure `go mod tidy` has been run
on: [ push, pull_request ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
fail-fast: false
# perform matrix testing to give us an earlier insight into issues with different versions of supported major versions of Go
matrix:
version:
- "1.22"
- "1.23"
- "1.24"
steps:
- name: Check out source code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
with:
go-version: ${{ matrix.version }}
- name: Install `tidied`
run: go install gitlab.com/jamietanna/tidied@latest
- name: Check for no untracked files
run: make tidy-ci
env:
# A combination of our GitHub Actions setup, with the Go toolchain, leads to inconsistencies in calling `go env`, in particular with Go 1.21, where having (the default) `GOTOOLCHAIN=auto` results in build failures
GOTOOLCHAIN: local
results:
if: ${{ always() }}
runs-on: ubuntu-latest
name: Check tidy results
needs: [build]
steps:
- run: |
result="${{ needs.build.result }}"
if [[ $result == "success" || $result == "skipped" ]]; then
exit 0
else
exit 1
fi