From 7f7739335ac1726b18266666fc1f39208c4745e9 Mon Sep 17 00:00:00 2001 From: xiaoweii Date: Thu, 26 Oct 2023 14:14:34 +0800 Subject: [PATCH] feat: test action --- .github/workflows/build-android.yml | 2 +- .github/workflows/build-ios.yml | 5 +---- .github/workflows/code-lint.yml | 2 +- .github/workflows/test.yml | 5 ++++- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-android.yml b/.github/workflows/build-android.yml index 5fc5179..3aae12e 100644 --- a/.github/workflows/build-android.yml +++ b/.github/workflows/build-android.yml @@ -2,7 +2,7 @@ name: Flutter SDK Build for Android on: push: - branches: [ "*" ] + branches: [ "main" ] pull_request: branches: [ "main" ] diff --git a/.github/workflows/build-ios.yml b/.github/workflows/build-ios.yml index cf40837..5ba82c4 100644 --- a/.github/workflows/build-ios.yml +++ b/.github/workflows/build-ios.yml @@ -2,7 +2,7 @@ name: Flutter SDK Build for iOS on: push: - branches: [ "*" ] + branches: [ "main" ] pull_request: branches: [ "main" ] @@ -14,9 +14,6 @@ jobs: - name: Initialize submodules run: | git submodule update --init - cd ios/Clickstream - git status - ls - uses: subosito/flutter-action@v2 with: channel: 'stable' diff --git a/.github/workflows/code-lint.yml b/.github/workflows/code-lint.yml index b9b49c0..269c06a 100644 --- a/.github/workflows/code-lint.yml +++ b/.github/workflows/code-lint.yml @@ -2,7 +2,7 @@ name: Flutter SDK Lint on: push: - branches: [ "*" ] + branches: [ "main" ] pull_request: branches: [ "main" ] diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f44ffb2..5a6423b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,7 +2,7 @@ name: Flutter SDK Test on: push: - branches: [ "main" ] + branches: [ "*" ] pull_request: branches: [ "main" ] @@ -11,6 +11,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: subosito/flutter-action@v2 + with: + channel: 'stable' - name: Run test run: | flutter pub get