Skip to content

Commit

Permalink
add: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurogoma4D committed Jun 2, 2021
1 parent 88fee41 commit 63847d3
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Testing

on:
push:
pull_request:
types: [opened, reopened, ready_for_review]

jobs:
flutter:
runs-on: ubuntu-latest
container: cirrusci/flutter:1.22.6

steps:
- uses: actions/checkout@v2

- name: Get Dependencies
run: flutter pub get

- name: Format
run: flutter format --set-exit-if-changed lib test

- name: Analyze
run: flutter analyze

- name: Testing
run: flutter test --coverage

- name: Generate Coverage Report
uses: danielpalme/[email protected]
with:
reports: 'coverage/lcov.info'
targetdir: 'coverage_report'

- name: Upload Coverage Report
uses: actions/upload-artifact@v2
with:
name: coverage_report
path: coverage_report
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
.pub-cache/
.pub/
build/
coverage/

# Android related
**/android/**/gradle-wrapper.jar
Expand Down

0 comments on commit 63847d3

Please sign in to comment.