libgit2dart/.github/workflows/master.yml
Aleksey Kulikov b589097c8c refactor!: use Finalizer to automatically free allocated memory for objects
BREAKING CHANGE: signature change for remote and repository callbacks
during repository clone operation.
2022-04-21 14:07:11 +03:00

56 lines
1.2 KiB
YAML

name: Dart CI analyze and test
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
env:
PUB_ENVIRONMENT: bot.github
jobs:
analyze:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
channel: master
- name: Install dependencies
run: flutter pub get
- name: Verify formatting
run: flutter format --output=none --set-exit-if-changed .
- name: Analyze source code
run: flutter analyze --fatal-infos
test:
needs: analyze
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
channel: master
- name: Install dependencies
run: flutter pub get
- name: Run tests
run: dart test --exclude-tags "remote_fetch" --platform=vm