Skip to content

Commit

Permalink
Attempt to update CI to only run if code files are changed (to save o…
Browse files Browse the repository at this point in the history
…n UI testing bandwidth)
  • Loading branch information
isaac-udy committed Oct 16, 2023
1 parent b7e80dc commit 6fb7f4d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,29 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Changes
uses: dorny/paths-filter@v2
id: changes
with:
filters: |
isCodeChange:
- '**/*.kt'
- '**/*.kts'
- '**/*.toml'
- name: Set up JDK 17
if: steps.changes.outputs.isCodeChange == 'true'
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: 17

- name: Setup gradle
if: steps.changes.outputs.isCodeChange == 'true'
uses: gradle/gradle-build-action@v2

- name: Run tests
if: steps.changes.outputs.isCodeChange == 'true'
env:
EW_API_TOKEN: ${{ secrets.EW_API_TOKEN }}
run: ./gradlew :enro:testDebugWithEmulatorWtf :enro:testDebugUnitTest :tests:application:testDebugWithEmulatorWtf :tests:application:testDebugUnitTest

0 comments on commit 6fb7f4d

Please sign in to comment.