-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ded52e1
commit 9c7c8ca
Showing
1 changed file
with
22 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,38 +3,28 @@ name: ruler_scale_picker | |
on: [ push ] | ||
|
||
jobs: | ||
lint: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: subosito/[email protected] | ||
|
||
- name: Install Dependencies | ||
- name: Cache dependencies | ||
uses: actions/cache@v3 | ||
id: cache | ||
with: | ||
path: | | ||
.dart_tool/ | ||
key: ${{ runner.os }}-dependencies-${{ hashFiles('**/pubspec.lock') }} | ||
- name: Install dependencies | ||
run: flutter pub get | ||
- name: Analyze | ||
run: flutter analyze | ||
- name: Code metrics | ||
run: dart run dart_code_metrics:metrics analyze . --set-exit-on-violation-level=warning --disable-sunset-warning | ||
|
||
style_check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: subosito/[email protected] | ||
|
||
- name: Install Dependencies | ||
run: flutter pub get | ||
- name: Format | ||
- name: Format code | ||
run: dart format --set-exit-if-changed . | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: subosito/[email protected] | ||
|
||
- name: Install Dependencies | ||
run: flutter pub get | ||
- name: Analyze code | ||
run: flutter analyze | ||
- name: Run Code metrics | ||
run: dart run dart_code_metrics:metrics analyze . --set-exit-on-violation-level=warning --disable-sunset-warning | ||
- name: Run tests | ||
run: flutter test | ||
- name: Upload test artifacts | ||
|
@@ -55,9 +45,17 @@ jobs: | |
run: | | ||
sudo apt update | ||
sudo apt install webp | ||
- name: Cache dependencies | ||
uses: actions/cache@v3 | ||
id: cache | ||
with: | ||
path: | | ||
.dart_tool/ | ||
key: ${{ runner.os }}-dependencies-${{ hashFiles('**/pubspec.lock') }} | ||
- name: Install Dependencies | ||
run: | | ||
flutter pub get | ||
flutter pub global activate pana | ||
- name: Verify Pub Score | ||
run: ./tool/verify_pub_score.sh |