Skip to content

Commit

Permalink
Remove DCM
Browse files Browse the repository at this point in the history
  • Loading branch information
mirland committed Oct 5, 2023
1 parent 5ceab12 commit 8addc0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 22 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/dart-ci.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
name: Dart CI
on:
pull_request_target:
pull_request:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1
Expand All @@ -27,18 +26,6 @@ jobs:
- name: Flutter Analyze project source
run: flutter analyze .

- name: Analyze project source - Code Metrics
run: |
result=$(dart run dart_code_metrics:metrics analyze lib --fatal-style --fatal-performance --fatal-warnings)
echo "$result"
[[ $result == '✔ no issues found!' ]] || { echo -e "${RED}Linter error" ; exit 1; }
- name: Analyze project source - Check Unused Code
run: dart run dart_code_metrics:metrics check-unused-code lib --fatal-unused

- name: Analyze project source - Check Unused Files
run: dart run dart_code_metrics:metrics check-unused-files lib --fatal-unused

- name: Run tests
run: |
dart pub global activate coverage 1.5.0
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/dart-metrics-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,13 @@ on: [pull_request]

jobs:
check:
name: dart-code-metrics-action
runs-on: ubuntu-latest
name: code-metrics-action
runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1

- name: dart-code-metrics
uses: dart-code-checker/dart-code-metrics-action@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Run pana
run: |
dart pub global activate pana
Expand Down

0 comments on commit 8addc0b

Please sign in to comment.