Skip to content

Commit a238575

Browse files
committed
make all workflows work on pull requests against main branch
1 parent ca77596 commit a238575

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

.github/workflows/build.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Build
22

33
on:
4-
push:
4+
pull_request:
55
branches:
6-
- "*"
6+
- main
77

88
jobs:
99
build:
@@ -16,13 +16,12 @@ jobs:
1616
- name: Setup Dart SDK
1717
uses: dart-lang/setup-dart@v1.6.0
1818
with:
19-
sdk: 'stable'
19+
sdk: "stable"
2020
- name: Install Melos
21-
run: dart pub global activate melos
22-
21+
run: dart pub global activate melos
22+
2323
- name: Install dependencies
2424
run: dart pub global run melos bootstrap
2525

2626
- name: Linting
2727
run: dart analyze .
28-

.github/workflows/coverage.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Upload Coverage
22

33
on:
4-
push:
4+
pull_request:
55
branches:
6-
- "*"
6+
- main
77

88
jobs:
99
build:

.github/workflows/tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Run Tests
22

33
on:
4-
push:
4+
pull_request:
55
branches:
6-
- "*"
6+
- main
77

88
jobs:
99
build:

0 commit comments

Comments
 (0)