-
-
Notifications
You must be signed in to change notification settings - Fork 975
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
5605bc2
commit 68b5443
Showing
3 changed files
with
76 additions
and
85 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
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 |
---|---|---|
|
@@ -11,25 +11,25 @@ jobs: | |
check_generation: | ||
runs-on: ubuntu-latest | ||
|
||
# steps: | ||
# - uses: actions/[email protected] | ||
# with: | ||
# fetch-depth: 2 | ||
# - uses: subosito/[email protected] | ||
# with: | ||
# channel: master | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 2 | ||
- uses: subosito/[email protected] | ||
with: | ||
channel: master | ||
|
||
# - name: Add pub cache bin to PATH | ||
# run: echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH | ||
# - name: Add pub cache to PATH | ||
# run: echo "PUB_CACHE="$HOME/.pub-cache"" >> $GITHUB_ENV | ||
# - name: Install dependencies | ||
# run: flutter pub get | ||
- name: Add pub cache bin to PATH | ||
run: echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH | ||
- name: Add pub cache to PATH | ||
run: echo "PUB_CACHE="$HOME/.pub-cache"" >> $GITHUB_ENV | ||
- name: Install dependencies | ||
run: flutter pub get | ||
|
||
# - run: dart pub global activate melos | ||
- run: dart pub global activate melos | ||
|
||
# - run: dart pub run melos bootstrap | ||
# - run: dart pub run melos run generate | ||
- run: dart pub run melos bootstrap | ||
- run: dart pub run melos run generate | ||
|
||
# - name: check there are no uncommitted changes | ||
# run: git diff --exit-code | ||
- name: check there are no uncommitted changes | ||
run: git diff --exit-code |
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 |
---|---|---|
|
@@ -22,50 +22,50 @@ jobs: | |
run: | ||
working-directory: ${{ matrix.package_path }} | ||
|
||
# strategy: | ||
# matrix: | ||
# channel: | ||
# - master | ||
# - stable | ||
# package_path: | ||
# - packages/riverpod_analyzer_utils | ||
# - packages/riverpod_analyzer_utils_tests | ||
# - packages/riverpod_lint | ||
# - packages/riverpod_lint_flutter_test | ||
strategy: | ||
matrix: | ||
channel: | ||
- master | ||
- stable | ||
package_path: | ||
- packages/riverpod_analyzer_utils | ||
- packages/riverpod_analyzer_utils_tests | ||
- packages/riverpod_lint | ||
- packages/riverpod_lint_flutter_test | ||
|
||
# steps: | ||
# - uses: actions/[email protected] | ||
# with: | ||
# fetch-depth: 2 | ||
# - uses: subosito/[email protected] | ||
# with: | ||
# channel: ${{ matrix.channel }} | ||
# - name: Add pub cache bin to PATH | ||
# run: echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH | ||
# - name: Add pub cache to PATH | ||
# run: echo "PUB_CACHE="$HOME/.pub-cache"" >> $GITHUB_ENV | ||
# - name: Install dependencies | ||
# run: flutter pub get | ||
# - run: dart pub global activate custom_lint | ||
# - name: Check format | ||
# run: dart format --set-exit-if-changed . | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 2 | ||
- uses: subosito/[email protected] | ||
with: | ||
channel: ${{ matrix.channel }} | ||
- name: Add pub cache bin to PATH | ||
run: echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH | ||
- name: Add pub cache to PATH | ||
run: echo "PUB_CACHE="$HOME/.pub-cache"" >> $GITHUB_ENV | ||
- name: Install dependencies | ||
run: flutter pub get | ||
- run: dart pub global activate custom_lint | ||
- name: Check format | ||
run: dart format --set-exit-if-changed . | ||
|
||
# - name: Analyze | ||
# run: flutter analyze | ||
- name: Analyze | ||
run: flutter analyze | ||
|
||
# - name: Run custom_lint | ||
# run: custom_lint | ||
# # Workaround to https://github.com/invertase/dart_custom_lint/issues/77 | ||
# if: matrix.package_path == 'packages/riverpod_lint_flutter_test' | ||
- name: Run custom_lint | ||
run: custom_lint | ||
# Workaround to https://github.com/invertase/dart_custom_lint/issues/77 | ||
if: matrix.package_path == 'packages/riverpod_lint_flutter_test' | ||
|
||
# - name: Run tests | ||
# run: | | ||
# if test -d "test"; then | ||
# ${{github.workspace}}/scripts/coverage.sh | ||
# fi | ||
- name: Run tests | ||
run: | | ||
if test -d "test"; then | ||
${{github.workspace}}/scripts/coverage.sh | ||
fi | ||
# - name: Upload coverage to codecov | ||
# run: | | ||
# if test -d "test"; then | ||
# curl -s https://codecov.io/bash | bash | ||
# fi | ||
- name: Upload coverage to codecov | ||
run: | | ||
if test -d "test"; then | ||
curl -s https://codecov.io/bash | bash | ||
fi |