diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ae4c470..b64ae84 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,27 +1,30 @@ name: CI on: - push: - branches: - - main - pull_request: - + push: + branches: + - main + pull_request: + jobs: main: runs-on: ubuntu-latest steps: - - name: Checkout project sources - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Setup Gradle - uses: gradle/gradle-build-action@v2 + - name: Checkout project sources + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Start CI run + run: 'npx nx-cloud start-ci-run --distribute-on="5 linux-medium-js"' + + - name: Setup Gradle + uses: gradle/gradle-build-action@v2 - - uses: nrwl/nx-set-shas@v3 + - 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' }} + # 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' }} - - name: Run build with Gradle Wrapper - run: ./nx affected -t test build --parallel=3 + - name: Run build with Gradle Wrapper + run: ./nx affected -t test build --parallel=3