mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 12:19:09 -04:00
61 lines
1.4 KiB
YAML
61 lines
1.4 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: dev
|
|
flutter-version: "2.6.0-11.0.pre"
|
|
|
|
- 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: dev
|
|
flutter-version: "2.6.0-11.0.pre"
|
|
|
|
- name: Install dependencies
|
|
run: flutter pub get
|
|
|
|
- name: Download libgit2 library
|
|
run: flutter pub run libgit2dart:setup
|
|
|
|
- name: Run tests
|
|
run: dart test --exclude-tags "remote_fetch" --platform=vm
|