This commit is contained in:
Nathan Bierema 2022-05-08 12:45:35 -04:00
parent 6ff53d0419
commit 1e35defb95
2 changed files with 11 additions and 9 deletions

View File

@ -14,16 +14,21 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: nrwl/nx-set-shas@v2
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: 'lts/*'
cache: 'pnpm'
- run: pnpm install
- run: pnpm run format:check
- run: pnpm run build:since
- run: pnpm run lint:since
- name: Run pnpm test:since
- name: Install dependencies
run: pnpm install
- name: Check formatting
run: pnpm run format:check
- name: Build
run: pnpm run nx affected --target=build --parallel=3
- name: Lint
run: pnpm run nx affected --target=lint --parallel=3
- name: Test
uses: GabrielBB/xvfb-action@v1
with:
run: pnpm run test:since
run: pnpm run nx affected --target=test --parallel=3

View File

@ -21,11 +21,8 @@
"format": "prettier --write .",
"format:check": "prettier --check .",
"build:all": "nx run-many --target=build --all",
"build:since": "nx affected --target=build",
"lint:all": "nx run-many --target=lint --all",
"lint:since": "nx affected --target=lint",
"test:all": "nx run-many --target=test --all",
"test:since": "nx affected --target=test",
"release": "pnpm build:all && changeset publish"
},
"workspaces": [