Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/build_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build PullRequest and run tests
on: [ pull_request ]
jobs:
build_pr:
if: github.repository_owner == 'OneLiteFeatherNET'
name: Build Pull Request Branch
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Init Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.35.7'
channel: 'stable'
- name: Cache Flutter dependencies
uses: actions/cache@v4
with:
path: |
~/.pub-cache
build
key: ${{ runner.os }}-pub-${{ hashFiles('pubspec.yaml') }}
restore-keys: ${{ runner.os }}-pub-
- name: Enable Flutter Web
run: flutter config --enable-web
- name: Install dependencies
run: flutter pub get
- name: Run analyzer
run: flutter analyze || true
- name: Run tests (Web)
run: flutter test --platform chrome --coverage
- name: Dart Coverage Assistant
id: coverage-report
uses: whynotmake-it/dart-coverage-assistant@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path: coverage/lcov.info
Loading