Skip to content
This repository has been archived by the owner on Sep 3, 2023. It is now read-only.

Commit

Permalink
apply
Browse files Browse the repository at this point in the history
  • Loading branch information
kawa1214 committed Jun 4, 2021
1 parent 53ef20c commit b2e5135
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions .github/workflows/review_dog.yaml
@@ -1,26 +1,27 @@
name: reviewdog
on: [pull_request]
name: flutter_analyze_and_test

on:
pull_request:

jobs:
dartanalyzer:
name: Check Code Quality
test:
name: flutter reviewdog
runs-on: ubuntu-latest

steps:
- name: Clone repo
uses: actions/checkout@main
with:
fetch-depth: 1
- name: Setup Dart SDK
uses: dart-lang/setup-dart@v1
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
sdk: stable
- name: Setup python
uses: actions/setup-python@v2
java-version: "12.x"
- uses: subosito/flutter-action@v1
with:
python-version: '3.x'
architecture: x64
- name: Run dartanalyzer
uses: HansChua/dartanalyzer-reviewdog-action@main
channel: "stable"
- uses: reviewdog/action-setup@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
reviewdog_version: latest
- name: reviewdog
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: dartcop . | reviewdog -f=checkstyle -name=dartcop -reporter=github-pr-review
- run: flutter pub get
- run: flutter analyze
- run: flutter test --verbose --coverage --coverage-path=~/coverage/lcov.info

0 comments on commit b2e5135

Please sign in to comment.