ci: add Vault integration to CI #5
Workflow file for this run
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: CI | |
| on: | |
| pull_request: | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-with-coverage: | |
| runs-on: ubuntu-latest | |
| 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/checkout@v4 | |
| 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: Install dependencies | |
| run: make install-dependencies | |
| - name: Ensure Reviewable | |
| run: make check-diff | |
| - name: Generate | |
| run: make generate | |
| - name: Test | |
| run: make test |