Skip to content

Commit

Permalink
make all workflows work on pull requests against main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
AlaaElattar committed Jun 27, 2024
1 parent ca77596 commit a238575
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Build

on:
push:
pull_request:
branches:
- "*"
- main

jobs:
build:
Expand All @@ -16,13 +16,12 @@ jobs:
- name: Setup Dart SDK
uses: dart-lang/[email protected]
with:
sdk: 'stable'
sdk: "stable"
- name: Install Melos
run: dart pub global activate melos
run: dart pub global activate melos

- name: Install dependencies
run: dart pub global run melos bootstrap

- name: Linting
run: dart analyze .

4 changes: 2 additions & 2 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Upload Coverage

on:
push:
pull_request:
branches:
- "*"
- main

jobs:
build:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Run Tests

on:
push:
pull_request:
branches:
- "*"
- main

jobs:
build:
Expand Down

0 comments on commit a238575

Please sign in to comment.