Skip to content

Add pull_request trigger to run ci workflow from forked repository #7

Add pull_request trigger to run ci workflow from forked repository

Add pull_request trigger to run ci workflow from forked repository #7

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: Run test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Run pub get
run: flutter pub get
- name: Run test
run: flutter test
lint:
name: Run lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Run pub get
run: flutter pub get
- name: Run analyze
run: flutter analyze