mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
CI for windows checks that proper libgit2 library is downloaded but does not run dart tests, due to broken CRLF attributes
55 lines
1.1 KiB
YAML
55 lines
1.1 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: dart-lang/setup-dart@v1
|
|
with:
|
|
sdk: dev
|
|
|
|
- name: Install dependencies
|
|
run: dart pub get
|
|
|
|
- name: Verify formatting
|
|
run: dart format --output=none --set-exit-if-changed .
|
|
|
|
- name: Analyze source code
|
|
run: dart analyze --fatal-infos
|
|
|
|
test:
|
|
needs: analyze
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: dart-lang/setup-dart@v1
|
|
with:
|
|
sdk: dev
|
|
|
|
- name: Install dependencies
|
|
run: dart pub get
|
|
|
|
- name: Download libgit2 library
|
|
run: dart run libgit2dart:setup
|
|
|
|
- name: Run tests
|
|
run: dart test --exclude-tags "remote_fetch" --platform vm
|
|
if: matrix.platform != 'windows-latest'
|