Skip to content

Commit

Permalink
Update GitHub workflow working directories to match the new Gradle bu…
Browse files Browse the repository at this point in the history
…ild structure.
  • Loading branch information
justasm committed Jan 19, 2021
1 parent 8823f46 commit 27d3304
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
1 change: 0 additions & 1 deletion .github/workflows/android_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ jobs:
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim
disable-animations: true
script: ./gradlew executeScreenshotTests
working-directory: ./android

- name: Publish artifacts
if: always()
Expand Down
10 changes: 1 addition & 9 deletions .github/workflows/build_android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,24 @@ jobs:
if: always()
uses: eskatos/gradle-command-action@v1
with:
build-root-directory: android
wrapper-directory: android
arguments: ktlintCheck
- name: Lint
if: always()
uses: eskatos/gradle-command-action@v1
with:
build-root-directory: android
wrapper-directory: android
arguments: lint
- name: Retain lint artifacts
uses: actions/upload-artifact@v2
with:
name: lint
path: android/routes/ui/build/reports/lint-results.html
path: android/**/build/reports/lint-results.html
- name: Test
if: always()
uses: eskatos/gradle-command-action@v1
with:
build-root-directory: android
wrapper-directory: android
arguments: test
- name: Assemble
if: always()
uses: eskatos/gradle-command-action@v1
with:
build-root-directory: android
wrapper-directory: android
arguments: assemble
6 changes: 5 additions & 1 deletion .github/workflows/ios_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ jobs:
- uses: devbotsxyz/xcode-select@v1

- uses: actions/checkout@v2

- uses: actions/setup-java@v1
with:
java-version: 11

- name: Build xcframework
run: cd common && ./gradlew xcframeworkSimulator && cd ..
run: ./gradlew xcframeworkSimulator

- name: Test
run: xcodebuild -scheme MaaS-Package test -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 8' | xcpretty
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/record_android_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ jobs:
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim
disable-animations: true
script: ./gradlew executeScreenshotTests -Precord
working-directory: ./android

- name: Git Auto Commit
uses: stefanzweifel/[email protected]
Expand Down

0 comments on commit 27d3304

Please sign in to comment.