libgit2dart/.github/workflows/master.yml
2022-05-23 13:50:15 +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@v3.0.1
- uses: subosito/flutter-action@v2
with:
channel: stable
- 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@v3.0.1
- uses: subosito/flutter-action@v2
with:
channel: stable
- name: Install dependencies
run: flutter pub get
- name: Run tests
run: dart test --reporter expanded --exclude-tags "remote_fetch" --platform=vm