Skip to content

Commit

Permalink
ci with affected
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacplmann committed Apr 22, 2024
1 parent 727b0f1 commit ba141d2
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI

on:
push:
branches:
- main
pull_request:

jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Checkout project sources
uses: actions/checkout@v4
- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- 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' }}

- name: Run build with Gradle Wrapper
run: ./nx affected -t test build --parallel=3
3 changes: 2 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@
"buildTargetName": "build"
}
}
]
],
"nxCloudAccessToken": "ODk0NjYzZDUtNmVjMS00NDNlLTlmMDUtNWU5MTJhZjA0OGFmfHJlYWQtd3JpdGU="
}

0 comments on commit ba141d2

Please sign in to comment.