Test database pipeline 3
Some checks failed
Some checks failed
This commit is contained in:
@@ -119,6 +119,24 @@ jobs:
|
|||||||
channel: stable
|
channel: stable
|
||||||
flutter-version: 3.41.0
|
flutter-version: 3.41.0
|
||||||
|
|
||||||
|
- name: Cache pub dependencies
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.pub-cache
|
||||||
|
key: pub-${{ runner.os }}-${{ hashFiles('**/pubspec.lock') }}
|
||||||
|
restore-keys: |
|
||||||
|
pub-${{ runner.os }}-
|
||||||
|
|
||||||
|
- name: Cache build_runner outputs
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
.dart_tool/build
|
||||||
|
key: build-runner-${{ runner.os }}-${{ hashFiles('**/pubspec.lock') }}
|
||||||
|
restore-keys: |
|
||||||
|
build-runner-${{ runner.os }}-
|
||||||
|
|
||||||
- name: Get dependencies
|
- name: Get dependencies
|
||||||
run: |
|
run: |
|
||||||
git config --global --add safe.directory /opt/hostedtoolcache/flutter/stable-3.41.0-x64
|
git config --global --add safe.directory /opt/hostedtoolcache/flutter/stable-3.41.0-x64
|
||||||
@@ -126,13 +144,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Check for generated database files
|
- name: Check for generated database files
|
||||||
run: |
|
run: |
|
||||||
dart run build_runner build --delete-conflicting-outputs
|
dart run build_runner build
|
||||||
|
|
||||||
# if [ -n "$(git status --porcelain '*.g.dart')" ]; then
|
if [ -n "$(git status --porcelain '*.g.dart')" ]; then
|
||||||
# echo "Generated database files are out of date. Diff:"
|
echo "Generated database files are out of date. Diff:"
|
||||||
# git --no-pager diff -- '*.g.dart'
|
git --no-pager diff -- '*.g.dart'
|
||||||
# exit 1
|
exit 1
|
||||||
#fi
|
fi
|
||||||
|
|
||||||
# echo "Generated database files are up to date."
|
echo "Generated database files are up to date."
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user