mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
chore: use flutter tool in ci
This commit is contained in:
parent
3d1ee7df3c
commit
75e6cf131a
1 changed files with 8 additions and 8 deletions
16
.github/workflows/master.yml
vendored
16
.github/workflows/master.yml
vendored
|
@ -17,18 +17,18 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: dart-lang/setup-dart@v1
|
- uses: subosito/flutter-action@v1
|
||||||
with:
|
with:
|
||||||
sdk: dev
|
sdk: dev
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: dart pub get
|
run: flutter pub get
|
||||||
|
|
||||||
- name: Verify formatting
|
- name: Verify formatting
|
||||||
run: dart format --output=none --set-exit-if-changed .
|
run: flutter format --output=none --set-exit-if-changed .
|
||||||
|
|
||||||
- name: Analyze source code
|
- name: Analyze source code
|
||||||
run: dart analyze --fatal-infos
|
run: flutter analyze --fatal-infos
|
||||||
|
|
||||||
test:
|
test:
|
||||||
needs: analyze
|
needs: analyze
|
||||||
|
@ -45,15 +45,15 @@ jobs:
|
||||||
git config --global core.eol lf
|
git config --global core.eol lf
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: dart-lang/setup-dart@v1
|
- uses: subosito/flutter-action@v1
|
||||||
with:
|
with:
|
||||||
sdk: dev
|
sdk: dev
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: dart pub get
|
run: flutter pub get
|
||||||
|
|
||||||
- name: Download libgit2 library
|
- name: Download libgit2 library
|
||||||
run: dart run libgit2dart:setup
|
run: flutter pub run libgit2dart:setup
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: dart test --exclude-tags "remote_fetch" --platform vm
|
run: flutter test --exclude-tags "remote_fetch" --platform vm
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue