Configured per-package build on CI #298
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: "Main workflow" | |
| on: | |
| pull_request: | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| env: | |
| CI_JOB_NUMBER: 1 | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - name: Use Node.js from .nvmrc | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: '.nvmrc' | |
| - run: corepack enable | |
| - run: yarn install | |
| - run: yarn lint-test | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| CI_JOB_NUMBER: 2 | |
| steps: | |
| - uses: actions/checkout@v1 | |
| with: | |
| fetch-depth: 0 | |
| - name: Use Node.js from .nvmrc | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: '.nvmrc' | |
| - run: corepack enable | |
| - run: yarn install | |
| - run: yarn build:modified origin/${{ github.event.pull_request.base.ref }} |