Skip to content

Commit 1252190

Browse files
committed
Run CI for pull requests
1 parent 0a3d31e commit 1252190

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/test.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ name: Test
33
on:
44
push:
55
branches:
6-
- "**"
6+
- "*"
7+
pull_request:
78

89
jobs:
910
build:
1011
runs-on: ubuntu-latest
12+
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
1113
steps:
12-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v5
1315
- uses: dart-lang/setup-dart@v1
1416

1517
- name: Install Melos
@@ -29,6 +31,7 @@ jobs:
2931
3032
test:
3133
runs-on: ubuntu-latest
34+
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
3235
strategy:
3336
fail-fast: false
3437
matrix:
@@ -49,7 +52,7 @@ jobs:
4952
sqlite_url: "https://www.sqlite.org/2022/sqlite-autoconf-3380000.tar.gz"
5053
dart_sdk: stable
5154
steps:
52-
- uses: actions/checkout@v3
55+
- uses: actions/checkout@v5
5356
- uses: dart-lang/setup-dart@v1
5457
with:
5558
sdk: ${{ matrix.dart_sdk }}

0 commit comments

Comments
 (0)