fix: pin platform package versions to exact release version #162
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: Validate | |
| on: | |
| pull_request: | |
| types: [opened, edited, synchronize, reopened] | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| workflow_call: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| validate: | |
| name: Validate Code | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| if: github.event_name != 'pull_request' || github.event.pull_request.draft == false | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: moonrepo/setup-toolchain@v0 | |
| with: | |
| auto-install: true | |
| cache: true | |
| cache-base: main | |
| - name: Restore Bun Package Cache | |
| id: restore-bun-cache | |
| uses: actions/cache/restore@v4 | |
| with: | |
| path: /home/runner/.bun/install/cache | |
| key: bun-packages-${{ runner.os }}-v1-${{ hashFiles('bun.lock') }} | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Validate commit messages | |
| if: github.event_name == 'pull_request' | |
| env: | |
| PR_TITLE: ${{ github.event.pull_request.title }} | |
| run: echo "$PR_TITLE" | bun run commitlint | |
| - name: Validate | |
| id: validate | |
| run: bun run validate | |
| - name: Save Bun Cache | |
| uses: actions/cache/save@v4 | |
| if: steps.validate.outcome == 'success' && steps.restore-bun-cache.outputs.cache-hit != 'true' | |
| with: | |
| path: /home/runner/.bun/install/cache | |
| key: ${{ steps.restore-bun-cache.outputs.cache-primary-key }} |