diff --git a/.github/workflows/codecov.yaml b/.github/workflows/codecov.yaml index 9604fb88..048861f0 100644 --- a/.github/workflows/codecov.yaml +++ b/.github/workflows/codecov.yaml @@ -14,7 +14,7 @@ jobs: GITHUB_TOKEN: ${{ github.token }} steps: - uses: actions/checkout@master - - uses: subosito/flutter-action@v1 + - uses: subosito/flutter-action@v2 with: channel: stable - name: Get flutter packages @@ -24,7 +24,7 @@ jobs: - name: Upload coverage to Codecov run: curl -s https://codecov.io/bash shell: bash - - uses: codecov/codecov-action@v2 + - uses: codecov/codecov-action@v3 with: token: ${{secrets.CODECOV_TOKEN}} - file: ./coverage/lcov.info \ No newline at end of file + files: ./coverage/lcov.info diff --git a/.github/workflows/dart_code_metrics.yaml b/.github/workflows/dart_code_metrics.yaml index b01bb1a1..964933df 100644 --- a/.github/workflows/dart_code_metrics.yaml +++ b/.github/workflows/dart_code_metrics.yaml @@ -6,15 +6,13 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Install Flutter - uses: subosito/flutter-action@master - with: - channel: stable + - uses: actions/checkout@v3 - - name: Check directory - run: ls - - name: Install Code Metrics - run: flutter pub global activate dart_code_metrics - - name: Run Code Metrics - run: flutter pub global run dart_code_metrics:metrics --reporter=github lib \ No newline at end of file + - name: Run Dart Code Metrics + uses: dart-code-checker/dart-code-metrics-action@v2 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + pull_request_comment: true + fatal_warnings: true + fatal_performance: true + fatal_style: true diff --git a/.github/workflows/flutter_analysis.yml b/.github/workflows/flutter_analysis.yml index 86ff212a..a9686ffd 100644 --- a/.github/workflows/flutter_analysis.yml +++ b/.github/workflows/flutter_analysis.yml @@ -6,21 +6,21 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Install Flutter - uses: subosito/flutter-action@master + uses: subosito/flutter-action@v2 with: channel: stable - - name: install dependencies + - name: Install dependencies run: flutter pub get - - name: format code + - name: Format code run: flutter format --set-exit-if-changed . - - name: analyze code - run: flutter analyze . + - name: Analyze code + run: flutter analyze --fatal-infos . - - name: test code + - name: Test code run: flutter test diff --git a/.github/workflows/gh_pages.yml b/.github/workflows/gh_pages.yml index e09c0abc..27e9df09 100644 --- a/.github/workflows/gh_pages.yml +++ b/.github/workflows/gh_pages.yml @@ -13,8 +13,8 @@ jobs: env: GITHUB_TOKEN: ${{ github.token }} steps: - - uses: actions/checkout@v2 - - uses: subosito/flutter-action@v1 + - uses: actions/checkout@v3 + - uses: subosito/flutter-action@v2 with: channel: stable - name: Install Dependencies @@ -33,4 +33,4 @@ jobs: git checkout -b gh-pages git add . git commit -m "update" - git push --force secure-origin gh-pages \ No newline at end of file + git push --force secure-origin gh-pages diff --git a/.github/workflows/pana_analysis.yml b/.github/workflows/pana_analysis.yml index afbd2949..a32d6cb3 100644 --- a/.github/workflows/pana_analysis.yml +++ b/.github/workflows/pana_analysis.yml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: axel-op/dart-package-analyzer@v3 # set an id for the current step @@ -33,4 +33,4 @@ jobs: env: JSON_OUTPUT: ${{ steps.analysis.outputs.json_output }} run: | - TOTAL_SCORE=$(jq -r '.scores.grantedPoints' <<< "$JSON_OUTPUT") \ No newline at end of file + TOTAL_SCORE=$(jq -r '.scores.grantedPoints' <<< "$JSON_OUTPUT")