diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 340b6cf38..531e31864 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,24 +28,24 @@ jobs: strategy: matrix: channel: - # - stable + - stable - master package_path: - # - examples/counter - # - examples/marvel - # - examples/pub - # - examples/random_number - # - examples/stackoverflow - # - examples/todos - # - packages/riverpod - # - packages/riverpod/example - # - packages/flutter_riverpod - # - packages/flutter_riverpod/example - # - packages/hooks_riverpod - # - packages/hooks_riverpod/example - # - packages/riverpod_annotation - # # TODO(rrousselGit) update riverpod_cli test setup to be supported by the CI - # # - packages/riverpod_cli + - examples/counter + - examples/marvel + - examples/pub + - examples/random_number + - examples/stackoverflow + - examples/todos + - packages/riverpod + - packages/riverpod/example + - packages/flutter_riverpod + - packages/flutter_riverpod/example + - packages/hooks_riverpod + - packages/hooks_riverpod/example + - packages/riverpod_annotation + # TODO(rrousselGit) update riverpod_cli test setup to be supported by the CI + # - packages/riverpod_cli - packages/riverpod_generator - packages/riverpod_generator/integration/build_yaml # TODO(rrousselGit) update riverpod_graph test setup to be supported by the CI @@ -79,15 +79,6 @@ jobs: run: dart format --set-exit-if-changed . if: matrix.package_path != 'website' && matrix.channel == 'master' - - name: Check - run: ls -la . - - - name: Check2 - run: | - if test -d "integration/build_yaml"; then - ls -la - fi - - name: Analyze run: flutter analyze if: matrix.channel == 'master' diff --git a/.github/workflows/check_generation.yml b/.github/workflows/check_generation.yml index 43765c3fa..27f133e58 100644 --- a/.github/workflows/check_generation.yml +++ b/.github/workflows/check_generation.yml @@ -11,25 +11,25 @@ jobs: check_generation: runs-on: ubuntu-latest - # steps: - # - uses: actions/checkout@v3.1.0 - # with: - # fetch-depth: 2 - # - uses: subosito/flutter-action@v2.7.1 - # with: - # channel: master + steps: + - uses: actions/checkout@v3.1.0 + with: + fetch-depth: 2 + - uses: subosito/flutter-action@v2.7.1 + 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 diff --git a/.github/workflows/riverpod_lint.yml b/.github/workflows/riverpod_lint.yml index 5e9972e5d..4c357c70b 100644 --- a/.github/workflows/riverpod_lint.yml +++ b/.github/workflows/riverpod_lint.yml @@ -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/checkout@v3.1.0 - # with: - # fetch-depth: 2 - # - uses: subosito/flutter-action@v2.7.1 - # 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/checkout@v3.1.0 + with: + fetch-depth: 2 + - uses: subosito/flutter-action@v2.7.1 + 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