fix: bump openapitools from add195c to c5fdabe
#75
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Pre-merge Checks | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| run-ci: | |
| # runs-on: ubuntu-latest | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash | |
| if: ${{ !github.event.pull_request.draft && github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' }} | |
| steps: | |
| # If the condition above is not met, aka, the PR is not in draft status, then this step is skipped. | |
| # Because this step is part of the critical path, omission of this step will result in remaining CI steps not gettinge executed. | |
| # As of 8/8/2022 there is now way to enforce this beahvior in GitHub Actions CI. | |
| - run: exit 0 | |
| build-with-latest-hapi-release: | |
| runs-on: ubuntu-latest | |
| needs: [run-ci] | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - name: Import Vault Credentials | |
| id: import-secrets | |
| uses: spectrocloud/palette-sdk-typescript/.github/actions/vault-credentials@main | |
| - name: Checkout | |
| uses: actions/[email protected] | |
| with: | |
| token: ${{ steps.import-secrets.outputs.VAULT_GITHUB_TOKEN }} | |
| - name: Setup Node.js environment | |
| uses: actions/[email protected] | |
| with: | |
| node-version: "22" | |
| cache: "npm" | |
| - name: Setup Copywrite | |
| uses: hashicorp/[email protected] | |
| - name: Checkout HAPI Repository | |
| uses: actions/[email protected] | |
| with: | |
| repository: spectrocloud/hapi | |
| path: api/hapi | |
| fetch-depth: "0" | |
| token: ${{ steps.import-secrets.outputs.VAULT_GITHUB_TOKEN }} | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Install Go Swagger | |
| run: | | |
| dir=$(mktemp -d) | |
| download_url=$(curl -s https://api.github.com/repos/go-swagger/go-swagger/releases/latest | \ | |
| jq -r '.assets[] | select(.name | contains("'"$(uname | tr '[:upper:]' '[:lower:]')"'_amd64")) | .browser_download_url') | |
| curl -o $dir/swagger -L'#' "$download_url" | |
| sudo install $dir/swagger /usr/local/bin | |
| - name: Ensure Reviewable | |
| run: make check-diff | |
| - name: Generate | |
| run: make generate | |
| - name: Test | |
| env: | |
| # Expires 2026-12-31. Tenant is https://palette-ai-rsch.console.spectrocloud.com/ | |
| PALETTE_API_KEY: ${{ secrets.PALETTE_API_KEY }} | |
| run: make test |