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 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- uses: nrwl/nx-set-shas@v2
- uses: pnpm/action-setup@v2 - uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: 'lts/*' node-version: 'lts/*'
cache: 'pnpm' cache: 'pnpm'
- run: pnpm install - name: Install dependencies
- run: pnpm run format:check run: pnpm install
- run: pnpm run build:since - name: Check formatting
- run: pnpm run lint:since run: pnpm run format:check
- name: Run pnpm test:since - 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 uses: GabrielBB/xvfb-action@v1
with: 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": "prettier --write .",
"format:check": "prettier --check .", "format:check": "prettier --check .",
"build:all": "nx run-many --target=build --all", "build:all": "nx run-many --target=build --all",
"build:since": "nx affected --target=build",
"lint:all": "nx run-many --target=lint --all", "lint:all": "nx run-many --target=lint --all",
"lint:since": "nx affected --target=lint",
"test:all": "nx run-many --target=test --all", "test:all": "nx run-many --target=test --all",
"test:since": "nx affected --target=test",
"release": "pnpm build:all && changeset publish" "release": "pnpm build:all && changeset publish"
}, },
"workspaces": [ "workspaces": [