build(deps): bump the minor-and-patch group across 1 directory with 11 updates #327
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: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
| TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| with: | |
| fetch-depth: 0 | |
| - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 | |
| with: | |
| bun-version: latest | |
| - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | |
| with: | |
| path: ~/.bun/install/cache | |
| key: bun-cache-${{ hashFiles('**/bun.lock') }} | |
| restore-keys: bun-cache- | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Lint (changed files only for PR) | |
| if: github.event_name == 'pull_request' | |
| run: bunx lint-staged --diff="origin/${{ github.base_ref }}...HEAD" | |
| - name: Lint (full for push to main) | |
| if: github.event_name == 'push' | |
| run: bun run lint | |
| typecheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 | |
| with: | |
| bun-version: latest | |
| - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | |
| with: | |
| path: ~/.bun/install/cache | |
| key: bun-cache-${{ hashFiles('**/bun.lock') }} | |
| restore-keys: bun-cache- | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Typecheck | |
| run: bun run typecheck | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 | |
| with: | |
| bun-version: latest | |
| - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | |
| with: | |
| path: ~/.bun/install/cache | |
| key: bun-cache-${{ hashFiles('**/bun.lock') }} | |
| restore-keys: bun-cache- | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Run tests | |
| run: bun run test | |
| - name: Generate coverage reports | |
| run: | | |
| cd packages/lsp && bun test --coverage --coverage-reporter=lcov | |
| cd ../code && bun test --coverage --coverage-reporter=lcov || true | |
| cd ../dora && bun test --coverage --coverage-reporter=lcov || true | |
| continue-on-error: true | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@0fb7174895f61a3b6b78fc075e0cd60383518dac # v5.5.5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: | | |
| ./packages/lsp/coverage/lcov.info | |
| ./packages/code/coverage/lcov.info | |
| ./packages/dora/coverage/lcov.info | |
| fail_ci_if_error: false |