chore(deps): Bump sigstore/cosign-installer from f713795cb21599bc4e5c4b58cbad1da852d7eeb9 to 398d4b0eeef1380460a10c8013a76f728fb906ac #351
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: {} | |
| merge_group: {} | |
| push: | |
| branches: | |
| - main | |
| - 'releases/*' | |
| jobs: | |
| test-typescript: | |
| name: "Test: Unit Tests" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1 | |
| with: | |
| egress-policy: audit | |
| - name: "Setup: Checkout" | |
| id: checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: "Setup: Node" | |
| id: setup-node | |
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | |
| with: | |
| node-version: 24 | |
| - name: "Setup: Bun" | |
| uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 | |
| with: | |
| bun-version: latest | |
| - name: "Setup: Install Dependencies" | |
| id: install | |
| run: bun install --frozen-lockfile | |
| - name: Check Format | |
| id: format-check | |
| run: bun run format:check | |
| - name: Lint | |
| id: lint | |
| run: bun run lint | |
| - name: Test | |
| id: test | |
| run: bun run test:ci | |
| - name: "Upload: Test Results" | |
| if: ${{ !cancelled() && hashFiles('test-results/**') != '' }} | |
| uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| report_type: test_results | |
| files: test-results/batch1.xml,test-results/batch2.xml,test-results/batch3.xml,test-results/batch4.xml,test-results/batch5.xml,test-results/batch6.xml | |
| fail_ci_if_error: false | |
| - name: "Upload: Coverage" | |
| if: ${{ !cancelled() && hashFiles('coverage/**') != '' }} | |
| uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| directory: ./coverage | |
| files: coverage/lcov.info | |
| fail_ci_if_error: false | |
| - name: Build | |
| run: bun run build | |
| - name: "Upload: Bundle Analysis" | |
| if: ${{ !cancelled() }} | |
| run: | | |
| bun x @codecov/bundle-analyzer ./dist \ | |
| --bundle-name=setup-elide \ | |
| --upload-token=${{ secrets.CODECOV_TOKEN }} \ | |
| --config-file=codecov-bundle.json | |
| continue-on-error: true | |
| test-action: | |
| name: "Test: ${{ matrix.name }}" | |
| runs-on: ${{ matrix.runner }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| # --- Linux AMD64 --- | |
| - name: linux-amd64 (archive) | |
| runner: ubuntu-latest | |
| installer: archive | |
| - name: linux-amd64 (shell) | |
| runner: ubuntu-latest | |
| installer: shell | |
| - name: linux-amd64 (apt) | |
| runner: ubuntu-latest | |
| installer: apt | |
| # - name: linux-amd64 (rpm) | |
| # runner: ubuntu-latest | |
| # installer: rpm | |
| # --- Linux ARM64 --- | |
| - name: linux-arm64 (archive) | |
| runner: ubuntu-24.04-arm | |
| installer: archive | |
| - name: linux-arm64 (shell) | |
| runner: ubuntu-24.04-arm | |
| installer: shell | |
| # --- macOS ARM64 --- | |
| - name: macos-arm64 (archive) | |
| runner: macos-latest | |
| installer: archive | |
| - name: macos-arm64 (shell) | |
| runner: macos-latest | |
| installer: shell | |
| # - name: macos-arm64 (pkg) | |
| # runner: macos-latest | |
| # installer: pkg | |
| # --- macOS AMD64 --- | |
| - name: macos-amd64 (archive) | |
| runner: macos-15-intel | |
| installer: archive | |
| # --- Windows AMD64 --- | |
| - name: windows-amd64 (archive) | |
| runner: windows-latest | |
| installer: archive | |
| # - name: windows-amd64 (shell) | |
| # runner: windows-latest | |
| # installer: shell | |
| # MSI: suppressed until installer is verified | |
| # - name: windows-amd64 (msi) | |
| # runner: windows-latest | |
| # installer: msi | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1 | |
| with: | |
| egress-policy: audit | |
| - name: "Setup: Checkout" | |
| id: checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: "Test: Local Action" | |
| id: test-action | |
| uses: ./ | |
| with: | |
| installer: ${{ matrix.installer }} | |
| - name: "Test: Verify Installation" | |
| shell: bash | |
| run: | | |
| elide --version | |
| echo "Path: ${{ steps.test-action.outputs.path }}" | |
| echo "Version: ${{ steps.test-action.outputs.version }}" | |
| echo "Cached: ${{ steps.test-action.outputs.cached }}" | |
| echo "Installer: ${{ steps.test-action.outputs.installer }}" |