diff --git a/.github/workflows/ffigen_weekly.yml b/.github/workflows/ffigen_weekly.yml index f724df5d2..e1304365a 100644 --- a/.github/workflows/ffigen_weekly.yml +++ b/.github/workflows/ffigen_weekly.yml @@ -5,6 +5,14 @@ name: ffigen_weekly on: # Run once a week. + push: + branches: [main, stable] + paths: + - '.github/workflows/ffigen_weekly.yml' + pull_request: + branches: [main, stable] + paths: + - '.github/workflows/ffigen_weekly.yml' schedule: - cron: "0 0 * * 0" @@ -22,11 +30,10 @@ jobs: - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 - uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 with: - flutter-version: 3.19.0 channel: 'stable' - name: Install dependencies run: flutter pub get && flutter pub get --directory="../objective_c" - name: Build test dylib and bindings - run: dart test/setup.dart + run: dart test/setup.dart --main-thread-dispatcher - name: Run VM tests run: flutter test