fix: ci #35
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: CI | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
actions: read | |
contents: read | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Restore cached npm dependencies | |
uses: actions/cache/restore@v4 | |
with: | |
path: | | |
node_modules | |
key: npm-dependencies-${{ hashFiles('pnpm-lock.yaml') }} | |
- run: pnpm install --frozen-lockfile | |
- name: Cache npm dependencies | |
uses: actions/cache/save@v3 | |
with: | |
path: | | |
node_modules | |
key: npm-dependencies-${{ hashFiles('pnpm-lock.yaml') }} | |
- name: Derive appropriate SHAs for base and head for `nx affected` commands | |
uses: nrwl/nx-set-shas@v4 | |
- name: Install playwright browsers | |
run: pnpm playwright install --with-deps chromium | |
- run: pnpm nx affected -t lint build --parallel=3 # add test | |
- run: pnpm nx affected -t e2e-ci --parallel=1 |