Skip to content

Commit

Permalink
PR feedback 2
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsenko committed May 29, 2024
1 parent 010d57d commit 149fe39
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/dart-desktop-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,17 @@ jobs:
run: false # fail if arch is not as expected
shell: bash

- name: Set RUNNER_OS
- id: runner_os_lowercase
# there is no such thing as ${{ tolower(runner.os) }}, hence this abomination ¯\_(ツ)_/¯
run: echo ${{ runner.os }} | awk '{print "RUNNER_OS=" tolower($0)}' >> $GITHUB_ENV
# use with steps.runner_os_lowercase.outputs.os
run: echo ${{ runner.os }} | awk '{print "os=" tolower($0)}' >> $GITHUB_OUTPUT
shell: bash

- name: Fetch artifacts
uses: actions/download-artifact@v4
with:
name: librealm-${{ env.RUNNER_OS }}
path: packages/realm_dart/binary/${{ env.RUNNER_OS }}
name: librealm-${{ steps.runner_os_lowercase.outputs.os }}
path: packages/realm_dart/binary/${{ steps.runner_os_lowercase.outputs.os }}

- name: Setup Dart SDK
uses: dart-lang/setup-dart@main
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/flutter-desktop-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ jobs:
run: false # fail if arch is not as expected
shell: bash

- name: Set RUNNER_OS
- id: runner_os_lowercase
# there is no such thing as ${{ tolower(runner.os) }}, hence this abomination ¯\_(ツ)_/¯
run: echo ${{ runner.os }} | awk '{print "RUNNER_OS=" tolower($0)}' >> $GITHUB_ENV
# use with steps.runner_os_lowercase.outputs.os
run: echo ${{ runner.os }} | awk '{print "os=" tolower($0)}' >> $GITHUB_OUTPUT
shell: bash

- name: Setup GTK & Ninja on Linux
Expand All @@ -57,8 +58,8 @@ jobs:
- name: Fetch artifacts
uses: actions/download-artifact@v4
with:
name: librealm-${{ env.RUNNER_OS }}
path: packages/realm_dart/binary/${{ env.RUNNER_OS }}
name: librealm-${{ steps.runner_os_lowercase.outputs.os }}
path: packages/realm_dart/binary/${{ steps.runner_os_lowercase.outputs.os }}

- name: Setup Flutter
uses: subosito/flutter-action@v2
Expand Down Expand Up @@ -86,7 +87,7 @@ jobs:
flutter test integration_test/all_tests.dart \
--dart-define=BAAS_BAASAAS_API_KEY=$BAAS_BAASAAS_API_KEY \
--dart-define=BAAS_DIFFERENTIATOR=$BAAS_DIFFERENTIATOR \
--device-id=${{ env.RUNNER_OS }} \
--device-id=${{ steps.runner_os_lowercase.outputs.os }} \
--file-reporter=json:test-results.json \
--suppress-analytics
shell: bash
Expand Down

0 comments on commit 149fe39

Please sign in to comment.