chore(deps): update containerbase/internal-tools action to v3.14.17 #3604
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: build | |
| on: | |
| push: | |
| branches-ignore: | |
| - gh-readonly-queue/** | |
| pull_request: | |
| merge_group: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | |
| cancel-in-progress: ${{ github.ref_name != 'main' && !startsWith(github.ref_name, 'maint/') && github.event_name == 'push' }} | |
| env: | |
| DRY_RUN: ${{ github.ref_name != github.event.repository.default_branch && !startsWith(github.ref_name, 'maint/') }} | |
| permissions: | |
| contents: read | |
| jobs: | |
| setup: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: ⚙️ Setup | |
| uses: containerbase/internal-tools/setup@4cc56d8f5d41ee43363f9a168a5bf728186ef66d # v3.14.17 | |
| with: | |
| save-cache: true | |
| test: | |
| needs: | |
| - setup | |
| name: ${{ matrix.node-version == 22 && format('test ({0})', matrix.os) || format('test ({0}, node-{1})', matrix.os, matrix.node-version) }} | |
| runs-on: ${{ matrix.os }} | |
| # tests shouldn't need more time | |
| timeout-minutes: 30 | |
| permissions: | |
| id-token: write | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| node-version: | |
| - 20 | |
| - 22 | |
| - 24 | |
| env: | |
| coverage: ${{ matrix.os == 'ubuntu-latest' && matrix.node-version == 22 }} | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| fetch-depth: 10 # required for coverage | |
| show-progress: false | |
| filter: blob:none # we don't need all blobs | |
| - name: ⚙️ Setup | |
| uses: containerbase/internal-tools/setup@4cc56d8f5d41ee43363f9a168a5bf728186ef66d # v3.14.17 | |
| with: | |
| checkout: false | |
| node-version: ${{ matrix.node-version }} | |
| save-cache: true | |
| - name: Init platform | |
| shell: bash | |
| run: | | |
| git config --global core.autocrlf false | |
| git config --global core.symlinks true | |
| echo "Node $(node --version)" | |
| echo "pnpm $(pnpm --version)" | |
| - name: Build | |
| run: pnpm build | |
| - name: Unit tests | |
| run: pnpm jest --maxWorkers=2 --ci --coverage ${{ env.coverage }} --logHeapUsage | |
| - name: Upload coverage | |
| if: env.coverage == 'true' && github.event_name != 'merge_group' && !cancelled() | |
| uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 | |
| with: | |
| name: coverage | |
| path: coverage | |
| - name: Codecov coverage results | |
| if: env.coverage == 'true' && github.event_name != 'merge_group' | |
| uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1 | |
| with: | |
| use_oidc: true | |
| flags: node${{ matrix.node-version }}-${{ runner.os }} | |
| - name: Codecov test results | |
| if: github.event_name != 'merge_group' && !cancelled() | |
| uses: codecov/test-results-action@47f89e9acb64b76debcd5ea40642d25a4adced9f # v1.1.1 | |
| with: | |
| use_oidc: true | |
| flags: node${{ matrix.node-version }}-${{ runner.os }} | |
| lint: | |
| needs: | |
| - setup | |
| runs-on: ubuntu-latest | |
| # lint shouldn't need more than 10 min | |
| timeout-minutes: 15 | |
| steps: | |
| - name: ⚙️ Setup | |
| uses: containerbase/internal-tools/setup@4cc56d8f5d41ee43363f9a168a5bf728186ef66d # v3.14.17 | |
| - name: Init platform | |
| run: | | |
| echo "Node $(node --version)" | |
| echo "pnpm $(pnpm --version)" | |
| - name: Lint | |
| run: | | |
| pnpm eslint -f gha | |
| pnpm markdown-lint | |
| pnpm prettier | |
| - name: Type check | |
| run: pnpm type-check | |
| release: | |
| needs: | |
| - lint | |
| - test | |
| runs-on: ubuntu-latest | |
| # release shouldn't need more than 5 min | |
| timeout-minutes: 15 | |
| permissions: | |
| contents: write | |
| issues: write | |
| id-token: write | |
| steps: | |
| # full checkout for semantic-release | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| fetch-depth: 0 | |
| show-progress: false | |
| filter: blob:none # we don't need all blobs | |
| - name: ⚙️ Setup | |
| uses: containerbase/internal-tools/setup@4cc56d8f5d41ee43363f9a168a5bf728186ef66d # v3.14.17 | |
| with: | |
| checkout: false | |
| - name: semantic-release | |
| run: pnpm semantic-release --dry-run ${{env.DRY_RUN}} --ci ${{env.DRY_RUN != 'true'}} | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| # Catch-all required check | |
| success: | |
| needs: | |
| - setup | |
| - lint | |
| - test | |
| - release | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 1 | |
| if: always() | |
| steps: | |
| - name: Fail for failed or skipped setup job | |
| if: | | |
| needs.setup.result == 'failure' || | |
| needs.setup.result == 'skipped' | |
| run: exit 1 | |
| - name: Fail for failed or skipped lint job | |
| if: | | |
| needs.lint.result == 'failure' || | |
| needs.lint.result == 'skipped' | |
| run: exit 1 | |
| - name: Fail for failed or skipped lint job | |
| if: | | |
| needs.test.result == 'failure' || | |
| needs.test.result == 'skipped' | |
| run: exit 1 | |
| - name: Fail for failed or skipped release job | |
| if: | | |
| needs.release.result == 'failure' || | |
| needs.release.result == 'skipped' | |
| run: exit 1 |