-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
- validate linting and tests before merge requests
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Linting & Tests Validation | ||
on: | ||
pull_request: | ||
branches: | ||
- develop | ||
jobs: | ||
lint_and_test: | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
esmaeil-ahmadipour
Author
Collaborator
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Set up Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: '3.24.5' | ||
- name: Install dependencies | ||
run: flutter pub get | ||
- name: Run Flutter Analyze | ||
run: flutter analyze | ||
- name: Run tests | ||
run: flutter test | ||
merge_check: | ||
runs-on: ubuntu-latest | ||
needs: lint_and_test | ||
if: ${{ success() }} | ||
This comment has been minimized.
Sorry, something went wrong.
phoenixit99
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Merge Pull Request | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
esmaeil-ahmadipour
Author
Collaborator
|
||
run: echo "Linting and tests passed successfully.Merge request is ready for merge" |
We need to separate the job between lint and test