Support publishing monorepo packages through Changesets #5
Workflow file for this run
This file contains 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: Test Affected | |
on: pull_request | |
jobs: | |
test-affected: | |
name: Test Affected | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: pnpm | |
- name: Install Chrome | |
uses: browser-actions/setup-chrome@v1 | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Run affected tests | |
run: pnpm test:ci:affected | |
env: | |
# temporary workaround for `Failed to resolve base ref 'main' from GitHub Actions event` | |
# per https://github.com/vercel/turborepo/issues/9320#issuecomment-2499219314 | |
TURBO_SCM_BASE: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }} |