Skip to content

Commit

Permalink
More fixes to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Syutkin committed Oct 28, 2024
1 parent a53abae commit 6ede0ae
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 15 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/flutter-pr.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
name: Flutter PR

on:
push:
branches: [ master ]
paths:
- "**.dart"
pull_request:
branches: [ master ]
paths:
- "**.dart"

jobs:
build:
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/flutter-push.yml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 1 addition & 1 deletion .github/workflows/flutter-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ jobs:
uses: ncipollo/release-action@v1
with:
artifacts: "build/app/outputs/apk/release/entime*.apk"
token: ${{ secrets.TOKEN }}
# token: ${{ secrets.TOKEN }}
14 changes: 7 additions & 7 deletions lib/src/constants/pubspec.yaml.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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".
Expand All @@ -118,7 +118,7 @@ sealed class Pubspec {
preRelease: <String>[r'alpha', r'1'],

/// The build identifier: "foo" in "1.2.3+foo".
build: <String>[r'281'],
build: <String>[r'282'],
);

/// Build date and time (UTC)
Expand All @@ -127,10 +127,10 @@ sealed class Pubspec {
10,
28,
11,
4,
44,
512,
291,
42,
29,
926,
638,
);

/// Name
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6ede0ae

Please sign in to comment.