Skip to content

Commit

Permalink
[#255] Use pull_request trigger only
Browse files Browse the repository at this point in the history
  • Loading branch information
luongvo committed Aug 16, 2023
1 parent 4225e06 commit 68fce14
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
name: CI
on:
# Trigger the workflow on push or pull request,
# but push action is only for the feature branch
pull_request:
types: [ opened, synchronize, reopened ]
push:
branches-ignore:
- develop
- 'release/**'
- main
types: [opened, synchronize, reopened]

jobs:
test:
Expand All @@ -22,8 +15,8 @@ jobs:
- name: Set up Flutter environment
uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: '3.10.5'
channel: "stable"
flutter-version: "3.10.5"

- name: Generate new project
run: |
Expand Down Expand Up @@ -62,8 +55,8 @@ jobs:
- name: Set up Flutter environment
uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: '3.10.5'
channel: "stable"
flutter-version: "3.10.5"

- name: Install Mason CLI
run: |
Expand Down Expand Up @@ -106,8 +99,8 @@ jobs:
- name: Set up Flutter environment
uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: '3.10.5'
channel: "stable"
flutter-version: "3.10.5"

- name: Remove the old sample project
run: |
Expand Down

0 comments on commit 68fce14

Please sign in to comment.