Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Actions #279

Merged
merged 6 commits into from
Jul 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/codecov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
files: ./coverage/lcov.info
20 changes: 9 additions & 11 deletions .github/workflows/dart_code_metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
- 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
14 changes: 7 additions & 7 deletions .github/workflows/flutter_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

6 changes: 3 additions & 3 deletions .github/workflows/gh_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -33,4 +33,4 @@ jobs:
git checkout -b gh-pages
git add .
git commit -m "update"
git push --force secure-origin gh-pages
git push --force secure-origin gh-pages
4 changes: 2 additions & 2 deletions .github/workflows/pana_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -33,4 +33,4 @@ jobs:
env:
JSON_OUTPUT: ${{ steps.analysis.outputs.json_output }}
run: |
TOTAL_SCORE=$(jq -r '.scores.grantedPoints' <<< "$JSON_OUTPUT")
TOTAL_SCORE=$(jq -r '.scores.grantedPoints' <<< "$JSON_OUTPUT")