diff --git a/.github/workflows/flutter-pr.yml b/.github/workflows/flutter-pr.yml index 59fb8646..9b9d3008 100644 --- a/.github/workflows/flutter-pr.yml +++ b/.github/workflows/flutter-pr.yml @@ -1,14 +1,8 @@ name: Flutter PR on: - push: - branches: [ master ] - paths: - - "**.dart" pull_request: branches: [ master ] - paths: - - "**.dart" jobs: build: diff --git a/.github/workflows/flutter-push.yml b/.github/workflows/flutter-push.yml new file mode 100644 index 00000000..7b2cc611 --- /dev/null +++ b/.github/workflows/flutter-push.yml @@ -0,0 +1,46 @@ +name: Flutter PR + +on: + push: + branches: [ master ] + paths: + - "**.dart" + - "!**.g.dart" + - "!**.freezed.dart" + +jobs: + build: + name: Analyze project source and run tests + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - uses: subosito/flutter-action@v2 + with: + channel: 'stable' # or: 'beta', 'dev' or 'master' + cache: true + + - run: flutter --version + + - name: Install dependencies + run: flutter pub get + + - name: Generate with build_runner + run: flutter pub run build_runner build --delete-conflicting-outputs + + - name: Analyze project source + run: flutter analyze + + - name: Run tests and collect coverage + run: flutter test --coverage test/ + + - name: Clean coverage + run: | + sudo apt-get -y install lcov + lcov -r coverage/lcov.info -o coverage/lcov.info "lib/**.freezed.dart" "lib/**.g.dart" "lib/src/common/localization/**.dart" "test/**.mocks.dart" + + - name: Upload to Codecov + uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/flutter-tag.yml b/.github/workflows/flutter-tag.yml index 1cdff7b5..17614ac5 100644 --- a/.github/workflows/flutter-tag.yml +++ b/.github/workflows/flutter-tag.yml @@ -72,4 +72,4 @@ jobs: uses: ncipollo/release-action@v1 with: artifacts: "build/app/outputs/apk/release/entime*.apk" - token: ${{ secrets.TOKEN }} \ No newline at end of file +# token: ${{ secrets.TOKEN }} \ No newline at end of file diff --git a/lib/src/constants/pubspec.yaml.g.dart b/lib/src/constants/pubspec.yaml.g.dart index 3bf7072d..88b81bd2 100644 --- a/lib/src/constants/pubspec.yaml.g.dart +++ b/lib/src/constants/pubspec.yaml.g.dart @@ -93,13 +93,13 @@ sealed class Pubspec { static const PubspecVersion version = ( /// Non-canonical string representation of the version as provided /// in the pubspec.yaml file. - representation: r'0.5.0-alpha.1+281', + representation: r'0.5.0-alpha.1+282', /// Returns a 'canonicalized' representation /// of the application version. /// This represents the version string in accordance with /// Semantic Versioning (SemVer) standards. - canonical: r'0.5.0-alpha.1+281', + canonical: r'0.5.0-alpha.1+282', /// MAJOR version when you make incompatible API changes. /// The major version number: 1 in "1.2.3". @@ -118,7 +118,7 @@ sealed class Pubspec { preRelease: [r'alpha', r'1'], /// The build identifier: "foo" in "1.2.3+foo". - build: [r'281'], + build: [r'282'], ); /// Build date and time (UTC) @@ -127,10 +127,10 @@ sealed class Pubspec { 10, 28, 11, - 4, - 44, - 512, - 291, + 42, + 29, + 926, + 638, ); /// Name diff --git a/pubspec.yaml b/pubspec.yaml index 9f71b135..26de9d2c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,7 +15,7 @@ repository: https://github.com/Syutkin/entime-mobile # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 0.5.0-alpha.1+281 +version: 0.5.0-alpha.1+282 environment: sdk: ^3.5.0