Skip to content

Merge pull request #2 from webedx-spark/Enable-NX-cloud-on-CI #6

Merge pull request #2 from webedx-spark/Enable-NX-cloud-on-CI

Merge pull request #2 from webedx-spark/Enable-NX-cloud-on-CI #6

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2
with:
version: 8
- run: pnpm install --frozen-lockfile
- uses: nrwl/nx-set-shas@v3
# This line is needed for nx affected to work when CI is running on a PR
- run: git branch --track main origin/main
if: ${{ github.event_name == 'pull_request' }}
- run: pnpm nx affected -t lint test build --parallel=3
- run: pnpm nx affected -t e2e --parallel=1