2323 test-and-lint :
2424 name : Test and Lint
2525 runs-on :
26- - frontend
26+ - ubuntu
2727 - self-hosted
2828 if : (github.event_name == 'pull_request' && !github.event.pull_request.draft) || (github.event_name == 'push' && github.ref == 'refs/heads/dev')
2929 timeout-minutes : 15
@@ -32,26 +32,30 @@ jobs:
3232 uses : actions/checkout@v4
3333 with :
3434 fetch-depth : 0
35+
3536 - name : Setup pnpm
3637 uses : pnpm/action-setup@v4
38+
3739 - name : Setup Node.js
3840 uses : actions/setup-node@v4
3941 with :
4042 node-version-file : .nvmrc
4143 cache : pnpm
42- - name : Setup dependencies
43- run : |
44- pnpm install --frozen-lockfile
45- pnpm cypress install --force
46- - uses : nrwl/nx-set-shas@v4
47- # - name: Run lint for affected projects
48- # run: pnpm exec nx affected --target lint
49- # - name: Run tests for affected projects
50- # run: pnpm exec nx affected --target test --ci --coverage
51- # - name: Run build for affected projects
52- # run: pnpm exec nx affected --target build
53- - name : Run lint test and build
54- run : pnpm exec nx run-many --target lint test
44+
45+ - name : Install dependencies
46+ run : pnpm install --frozen-lockfile
47+
48+ # - name: Install Playwright
49+ # run: pnpm exec playwright install --with-deps
50+
51+ - name : Set SHAs
52+ uses : nrwl/nx-set-shas@v4
53+ with :
54+ main-branch-name : dev
55+
56+ - name : Run lint and test
57+ run : pnpm exec nx affected -t lint test --parallel=5
58+
5559 - name : Upload coverage reports to Codecov
5660 uses : codecov/codecov-action@v4
5761 with :
0 commit comments