From a86f95e0da6d5681f2efd30b532a2f82671c1834 Mon Sep 17 00:00:00 2001 From: Amir Panahandeh Date: Sun, 28 Jul 2024 13:59:52 +0330 Subject: [PATCH] Prevent duplicated run of main pipeline in PRs --- .github/workflows/fleather.yml | 6 +++++- .github/workflows/performance_test.yaml | 3 +-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/fleather.yml b/.github/workflows/fleather.yml index f22634c3..df30a166 100644 --- a/.github/workflows/fleather.yml +++ b/.github/workflows/fleather.yml @@ -1,6 +1,10 @@ name: build -on: [push, pull_request] +on: + push: + branches: + - 'master' + pull_request: jobs: build: diff --git a/.github/workflows/performance_test.yaml b/.github/workflows/performance_test.yaml index d28db0a3..7334d9f4 100644 --- a/.github/workflows/performance_test.yaml +++ b/.github/workflows/performance_test.yaml @@ -30,9 +30,8 @@ jobs: run: mv packages/fleather/example/build/performance_timelines packages/fleather/example/build/reference_performance_timelines - name: Run performance tests - working-directory: ./packages/parchment + working-directory: ./packages/fleather/example run: | - ls flutter drive --driver=test_driver/performance_driver.dart --target=integration_test/scrolling_test.dart --profile flutter drive --driver=test_driver/performance_driver.dart --target=integration_test/editing_test.dart --profile dart run test_utils/analyze_performance_result.dart