Skip to content

Commit

Permalink
Updated to use upload-artifacts/v4 (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgalvan authored Sep 17, 2024
1 parent 0383266 commit af013d3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/build-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: amazon-location-services-builds
SLACK_COLOR: '#FFFF00'
SLACK_ICON_EMOJI: ':hammer:'
SLACK_COLOR: "#FFFF00"
SLACK_ICON_EMOJI: ":hammer:"
SLACK_LINK_NAMES: true
SLACK_TITLE: ${{ format('Android Build №{0} started...', env.BUILD_NUM) }}
SLACK_MESSAGE: |
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
./gradlew app:connectedDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=com.aws.amazonlocation.ui.main.ConnectToAWSTest
- name: Upload test results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
Expand Down Expand Up @@ -123,9 +123,7 @@ jobs:
aab_path:./app/build/outputs/bundle/release/app-release.aab
slackNotification:
name: slack
needs: [
build-android
]
needs: [build-android]
if: always()
runs-on: ubuntu-latest
env:
Expand All @@ -142,7 +140,7 @@ jobs:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: amazon-location-services-builds
SLACK_COLOR: ${{ env.SUCCESS == 'true' && 'success' || 'failure' }}
SLACK_ICON_EMOJI: ':tophat:'
SLACK_ICON_EMOJI: ":tophat:"
SLACK_LINK_NAMES: true
SLACK_TITLE: ${{ format('Android build №{0} {1}', env.BUILD_NUM, env.SUCCESS == 'true' && 'finished successfully :tada:' || 'failed!') }}
SLACK_MESSAGE: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-android-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
distribution: "zulu"
java-version: "17"

- name: Run Unit Tests
run: |
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
./gradlew app:connectedDebugAndroidTest -i -Pandroid.testInstrumentationRunnerArguments.class=com.aws.amazonlocation.ui.main.ConnectToAWSTest
- name: Upload test results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Run Unit Tests for Android
on:
workflow_dispatch:
pull_request:
branches: [ develop, main ]
branches: [develop, main]
jobs:
test-android:
name: Test Android
Expand Down Expand Up @@ -30,15 +30,15 @@ jobs:
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
distribution: "zulu"
java-version: "17"

- name: Run Unit Tests
run: |
./gradlew testDebugUnitTest
- name: Upload test results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
Expand Down

0 comments on commit af013d3

Please sign in to comment.