Skip to content

chore: Update Flutter test workflow for pull requests to run on the master branch #1

chore: Update Flutter test workflow for pull requests to run on the master branch

chore: Update Flutter test workflow for pull requests to run on the master branch #1

Workflow file for this run

name: Flutter Test
on:
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- name: Flutter Pub Get
run: flutter pub get
- name: Run Tests
run: flutter test
- name: Check Test Results
if: success()
uses: actions/github-script@v6
with:
script: |
github.rest.issues.createComment({
issue_number: context.payload.pull_request.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'All tests passed! 🎉'
})