Skip to content

Commit

Permalink
use nx agents
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacplmann committed Apr 22, 2024
1 parent 17d5515 commit 6453ea2
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6453ea2

Please sign in to comment.