From 5387525d5cc751bba986b9d04a91c50c22a7eec7 Mon Sep 17 00:00:00 2001 From: nilsreichardt Date: Wed, 11 May 2022 17:00:20 +0200 Subject: [PATCH 1/3] Use for `test` job a macOS machine to be able to run golden tests --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 22758a223..7c9cda597 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -59,7 +59,7 @@ jobs: - run: addlicense -check -c "Sharezone UG (haftungsbeschränkt)" -f header_template.txt -ignore "**/GeneratedPluginRegistrant.swift" . test: - runs-on: ubuntu-latest + runs-on: macos-latest steps: - uses: actions/checkout@v2 From f47bd61ade6e94427cb25eeea4ca6ff3b91bf5e0 Mon Sep 17 00:00:00 2001 From: nilsreichardt Date: Wed, 11 May 2022 17:33:45 +0200 Subject: [PATCH 2/3] Try to fix add `bin` to path --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7c9cda597..ca6b65e3f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -75,7 +75,7 @@ jobs: run: pub global activate --source path "$CI_CD_DART_SCRIPTS_PACKAGE_PATH" # So we can just use "sz COMMAND" instead of "dart ../path/to/script.dart ..." - - run: echo $(realpath ./bin) >> $GITHUB_PATH + - run: echo "$(pwd)/bin" >> $GITHUB_PATH - name: Run tests via "sz test" run: sz test -v From 2ad453a78e944bdfe04df6ee17abf106ee9c9349 Mon Sep 17 00:00:00 2001 From: nilsreichardt Date: Thu, 12 May 2022 00:55:15 +0200 Subject: [PATCH 3/3] Try without `"` --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ca6b65e3f..84161529d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -75,7 +75,7 @@ jobs: run: pub global activate --source path "$CI_CD_DART_SCRIPTS_PACKAGE_PATH" # So we can just use "sz COMMAND" instead of "dart ../path/to/script.dart ..." - - run: echo "$(pwd)/bin" >> $GITHUB_PATH + - run: echo $(pwd)/bin >> $GITHUB_PATH - name: Run tests via "sz test" run: sz test -v