Repository after completing the tutorial #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
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 | |
- 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 |