From 81c00e4af4c9a55234b01a762b8826829821bde3 Mon Sep 17 00:00:00 2001 From: Donghyun Kim Date: Thu, 19 Sep 2024 21:19:31 +0900 Subject: [PATCH 1/6] Use `flutter test` in CI --- .github/workflows/check_and_lint.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check_and_lint.yml b/.github/workflows/check_and_lint.yml index adec80e..f05cd37 100644 --- a/.github/workflows/check_and_lint.yml +++ b/.github/workflows/check_and_lint.yml @@ -10,8 +10,8 @@ jobs: Flutter: runs-on: ubuntu-latest steps: - - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 #v2.7.0 - - uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d #1.6.0 + - uses: actions/checkout@v4 + - uses: subosito/flutter-action@v2 - name: Pub Get run: dart pub get --no-precompile working-directory: build_tool @@ -22,5 +22,5 @@ jobs: run: dart analyze working-directory: build_tool - name: Test - run: dart test + run: flutter test working-directory: build_tool From ef4df6597ba3952a16ae53fb8911f4071cc126d8 Mon Sep 17 00:00:00 2001 From: Donghyun Kim Date: Fri, 20 Sep 2024 09:09:25 +0900 Subject: [PATCH 2/6] Pin actions to specific versions --- .github/workflows/check_and_lint.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check_and_lint.yml b/.github/workflows/check_and_lint.yml index f05cd37..9076285 100644 --- a/.github/workflows/check_and_lint.yml +++ b/.github/workflows/check_and_lint.yml @@ -10,8 +10,8 @@ jobs: Flutter: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: subosito/flutter-action@v2 + - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # 4.0 + - uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 #2.16 - name: Pub Get run: dart pub get --no-precompile working-directory: build_tool From 26c2d3975679b76d12c2115c6d5182d06bf93224 Mon Sep 17 00:00:00 2001 From: Donghyun Kim Date: Fri, 20 Sep 2024 09:10:27 +0900 Subject: [PATCH 3/6] Bump GitHub actions revision --- .github/workflows/check_and_lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check_and_lint.yml b/.github/workflows/check_and_lint.yml index 9076285..d0e9373 100644 --- a/.github/workflows/check_and_lint.yml +++ b/.github/workflows/check_and_lint.yml @@ -10,7 +10,7 @@ jobs: Flutter: runs-on: ubuntu-latest steps: - - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # 4.0 + - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # 4.1.0 - uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 #2.16 - name: Pub Get run: dart pub get --no-precompile From 6456dab5e6cb908c0347d02a3195c166c9f67cc8 Mon Sep 17 00:00:00 2001 From: Donghyun Kim Date: Fri, 20 Sep 2024 09:12:15 +0900 Subject: [PATCH 4/6] Fix a comment --- .github/workflows/check_and_lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check_and_lint.yml b/.github/workflows/check_and_lint.yml index d0e9373..81b09fd 100644 --- a/.github/workflows/check_and_lint.yml +++ b/.github/workflows/check_and_lint.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # 4.1.0 - - uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 #2.16 + - uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 #2.16.0 - name: Pub Get run: dart pub get --no-precompile working-directory: build_tool From bc3398e6441ee4d0ae7db3a4ea797d50abb8a158 Mon Sep 17 00:00:00 2001 From: Donghyun Kim Date: Fri, 20 Sep 2024 09:12:24 +0900 Subject: [PATCH 5/6] Reformat a comment --- .github/workflows/check_and_lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check_and_lint.yml b/.github/workflows/check_and_lint.yml index 81b09fd..d8979f0 100644 --- a/.github/workflows/check_and_lint.yml +++ b/.github/workflows/check_and_lint.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # 4.1.0 - - uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 #2.16.0 + - uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 # 2.16.0 - name: Pub Get run: dart pub get --no-precompile working-directory: build_tool From c2c79553ad6f95ab205806580c5c0326772ec6b8 Mon Sep 17 00:00:00 2001 From: Donghyun Kim Date: Fri, 20 Sep 2024 09:17:26 +0900 Subject: [PATCH 6/6] Match action versions --- .github/workflows/test_example_plugin_build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_example_plugin_build.yml b/.github/workflows/test_example_plugin_build.yml index 4fb0252..698ea7e 100644 --- a/.github/workflows/test_example_plugin_build.yml +++ b/.github/workflows/test_example_plugin_build.yml @@ -39,7 +39,7 @@ jobs: git clone -b advanced https://github.com/irondash/hello_rust_ffi_plugin cd hello_rust_ffi_plugin git subtree pull --prefix cargokit https://github.com/${{ github.event.pull_request.head.repo.full_name || github.repository }} ${{ steps.extract_branch.outputs.branch }} --squash - - uses: subosito/flutter-action@cc97e1648fff6ca5cc647fa67f47e70f7895510b # 2.11.0 + - uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 # 2.16.0 with: channel: "stable" - name: Install GTK