Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Issue Fixed on workflows #89

Merged
merged 25 commits into from
Oct 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
7cf71a8
Add release note template (#40)
M97Chahboun Oct 3, 2022
5142410
Disabled commit if not bump (#41)
M97Chahboun Oct 3, 2022
17f6497
Add release note template (#40)
M97Chahboun Oct 3, 2022
3697ed0
Disabled commit if not bump (#41)
M97Chahboun Oct 3, 2022
94085e5
update workflow image & bump version
M97Chahboun Oct 13, 2022
820383f
bump version to 2.2.9+19 from fastlane
M97Chahboun Oct 13, 2022
a60e5c9
update workflow image & bump version
M97Chahboun Oct 13, 2022
0066be9
bump version to 2.2.9+19 from fastlane
M97Chahboun Oct 13, 2022
1591794
Merge branch 'stable' of https://github.com/M97Chahboun/flutter_ci_cd…
M97Chahboun Oct 13, 2022
4d1875b
use env var instaed of set§output on get version workflow (#76)
M97Chahboun Oct 15, 2022
0225630
Migrate staging workflow deprecated (#77)
M97Chahboun Oct 15, 2022
6cd6a53
Merge branch 'staging' of https://github.com/M97Chahboun/flutter_ci_c…
M97Chahboun Oct 15, 2022
9c2e8a9
bump version manually
M97Chahboun Oct 15, 2022
e1e8d23
Removed ./lib from ci-dev for analyze all scripts (#81)
M97Chahboun Oct 15, 2022
d0547ce
Try to fix workflow migration (#82)
M97Chahboun Oct 15, 2022
33583e8
Use GITHUB_OUTPUT instead of GITHUB_ENV (#83)
M97Chahboun Oct 15, 2022
90ef5e1
Try to fix workflow migration (#84)
M97Chahboun Oct 15, 2022
263a70a
Use env variable for workflow output (#85)
M97Chahboun Oct 16, 2022
2223fab
Use env variable in workflows for get output (#86)
M97Chahboun Oct 16, 2022
fc2d1c3
Use one job for get outputs (#87)
M97Chahboun Oct 16, 2022
c323172
bump version to 2.2.10+20 from fastlane
M97Chahboun Oct 16, 2022
20bca48
Fix workflow outputs issue (#88)
M97Chahboun Oct 16, 2022
afbad58
bump version to 2.2.11+20 from fastlane
M97Chahboun Oct 16, 2022
cc7c7f9
Fix sd-stable issue
M97Chahboun Oct 16, 2022
6e1a5c0
Merge branch 'staging' of https://github.com/M97Chahboun/flutter_ci_c…
M97Chahboun Oct 16, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 16 additions & 22 deletions .dart_tool/package_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"packages": [
{
"name": "async",
"rootUri": "file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.8.2",
"rootUri": "file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.9.0",
"packageUri": "lib/",
"languageVersion": "2.12"
"languageVersion": "2.14"
},
{
"name": "boolean_selector",
Expand All @@ -15,19 +15,13 @@
},
{
"name": "characters",
"rootUri": "file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/characters-1.2.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "charcode",
"rootUri": "file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/charcode-1.3.1",
"rootUri": "file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/characters-1.2.1",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "clock",
"rootUri": "file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/clock-1.1.0",
"rootUri": "file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/clock-1.1.1",
"packageUri": "lib/",
"languageVersion": "2.12"
},
Expand All @@ -45,15 +39,15 @@
},
{
"name": "fake_async",
"rootUri": "file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/fake_async-1.3.0",
"rootUri": "file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/fake_async-1.3.1",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "flutter",
"rootUri": "file:///Users/m97chahboun/Development/flutter/packages/flutter",
"packageUri": "lib/",
"languageVersion": "2.12"
"languageVersion": "2.17"
},
{
"name": "flutter_lints",
Expand All @@ -75,25 +69,25 @@
},
{
"name": "matcher",
"rootUri": "file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.11",
"rootUri": "file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.12",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "material_color_utilities",
"rootUri": "file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/material_color_utilities-0.1.4",
"rootUri": "file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/material_color_utilities-0.1.5",
"packageUri": "lib/",
"languageVersion": "2.13"
},
{
"name": "meta",
"rootUri": "file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/meta-1.7.0",
"rootUri": "file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/meta-1.8.0",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "path",
"rootUri": "file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/path-1.8.1",
"rootUri": "file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/path-1.8.2",
"packageUri": "lib/",
"languageVersion": "2.12"
},
Expand All @@ -105,7 +99,7 @@
},
{
"name": "source_span",
"rootUri": "file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.8.2",
"rootUri": "file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.9.0",
"packageUri": "lib/",
"languageVersion": "2.14"
},
Expand All @@ -123,19 +117,19 @@
},
{
"name": "string_scanner",
"rootUri": "file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.1.0",
"rootUri": "file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.1.1",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "term_glyph",
"rootUri": "file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.2.0",
"rootUri": "file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.2.1",
"packageUri": "lib/",
"languageVersion": "2.12"
},
{
"name": "test_api",
"rootUri": "file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/test_api-0.4.9",
"rootUri": "file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/test_api-0.4.12",
"packageUri": "lib/",
"languageVersion": "2.12"
},
Expand All @@ -152,7 +146,7 @@
"languageVersion": "2.17"
}
],
"generated": "2022-08-26T10:19:54.264774Z",
"generated": "2022-10-16T13:25:49.137217Z",
"generator": "pub",
"generatorVersion": "2.17.6"
"generatorVersion": "2.18.1"
}
56 changes: 26 additions & 30 deletions .dart_tool/package_config_subset
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
async
2.12
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.8.2/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.8.2/lib/
2.14
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.9.0/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/async-2.9.0/lib/
boolean_selector
2.12
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.1.0/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.1.0/lib/
characters
2.12
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/characters-1.2.0/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/characters-1.2.0/lib/
charcode
2.12
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/charcode-1.3.1/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/charcode-1.3.1/lib/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/characters-1.2.1/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/characters-1.2.1/lib/
clock
2.12
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/clock-1.1.0/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/clock-1.1.0/lib/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/clock-1.1.1/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/clock-1.1.1/lib/
collection
2.12
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/collection-1.16.0/
Expand All @@ -28,8 +24,8 @@ file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/cupertino_icons-1.0.5/lib/
fake_async
2.12
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/fake_async-1.3.0/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/fake_async-1.3.0/lib/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/fake_async-1.3.1/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/fake_async-1.3.1/lib/
flutter_lints
2.17
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_lints-2.0.1/
Expand All @@ -40,24 +36,24 @@ file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/lints-2.0.0/lib/
matcher
2.12
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.11/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.11/lib/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.12/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.12/lib/
material_color_utilities
2.13
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/material_color_utilities-0.1.4/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/material_color_utilities-0.1.4/lib/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/material_color_utilities-0.1.5/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/material_color_utilities-0.1.5/lib/
meta
2.12
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/meta-1.7.0/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/meta-1.7.0/lib/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/meta-1.8.0/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/meta-1.8.0/lib/
path
2.12
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/path-1.8.1/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/path-1.8.1/lib/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/path-1.8.2/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/path-1.8.2/lib/
source_span
2.14
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.8.2/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.8.2/lib/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.9.0/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/source_span-1.9.0/lib/
stack_trace
2.12
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.10.0/
Expand All @@ -68,16 +64,16 @@ file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.1.0/lib/
string_scanner
2.12
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.1.0/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.1.0/lib/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.1.1/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.1.1/lib/
term_glyph
2.12
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.2.0/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.2.0/lib/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.2.1/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.2.1/lib/
test_api
2.12
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/test_api-0.4.9/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/test_api-0.4.9/lib/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/test_api-0.4.12/
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/test_api-0.4.12/lib/
vector_math
2.14
file:///Users/m97chahboun/Development/flutter/.pub-cache/hosted/pub.dartlang.org/vector_math-2.1.2/
Expand All @@ -87,7 +83,7 @@ sky_engine
file:///Users/m97chahboun/Development/flutter/bin/cache/pkg/sky_engine/
file:///Users/m97chahboun/Development/flutter/bin/cache/pkg/sky_engine/lib/
flutter
2.12
2.17
file:///Users/m97chahboun/Development/flutter/packages/flutter/
file:///Users/m97chahboun/Development/flutter/packages/flutter/lib/
flutter_test
Expand Down
2 changes: 1 addition & 1 deletion .dart_tool/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.5
3.3.2
34 changes: 12 additions & 22 deletions .github/workflows/bump-version-based-on-labels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,22 @@ on:
- closed

jobs:
setup_dart_and_run_converter:
bump_version_based_on_labels:
if: ${{ (github.event.pull_request.merged == true) }}
runs-on: ubuntu-latest
outputs:
parts: ${{ steps.labels_to_version_parts.outputs.parts }}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1.3
- name: Setup Dart Language
uses: dart-lang/setup-dart@v1.3
- name: Convert labels to version parts
id: labels_to_version_parts
run: "dart workflows_utils/labels_to_version_parts.dart ${{ join(github.event.pull_request.labels.*.name,' ') }}"

bump_version_based_on_labels:
if: ${{ (github.event.pull_request.merged == true) }}
runs-on: ubuntu-latest
needs: setup_dart_and_run_converter
steps:
- name: Checkout Repo
uses: actions/checkout@v3
# Setup Ruby, Bundler, Gemfile
- name: Setup Fastlane
uses: ruby/setup-ruby@72d59482210349c1114eca714b6c5df19fbbec34
with:
ruby-version: "2.6"
bundler-cache: true
run: "dart workflows_utils/labels_to_version_parts.dart ${{ join(github.event.pull_request.labels.*.name,' ') }}"
# Setup Ruby, Bundler, Gemfile
- name: Setup Fastlane
uses: ruby/setup-ruby@72d59482210349c1114eca714b6c5df19fbbec34
with:
ruby-version: "2.6"
bundler-cache: true
working-directory: android
- run: bundle exec fastlane bump_version push:true branch:${{ github.ref_name }} ${{env.parts}} bump_build:false
working-directory: android
- run: bundle exec fastlane bump_version push:true branch:${{ github.ref_name }} ${{needs.setup_dart_and_run_converter.outputs.parts}} bump_build:false
working-directory: android
41 changes: 11 additions & 30 deletions .github/workflows/cd-stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,27 +43,10 @@ jobs:
# GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}
# PROJECT_ID: default

setup_dart_and_run_scripts:
runs-on: ubuntu-latest
outputs:
track: ${{ steps.labels_to_track.outputs.track }}
project_version: ${{ steps.get_project_version.outputs.project_version }}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1.3
- name: Convert labels to track
id: labels_to_track
run: "dart workflows_utils/labels_to_track.dart ${{ join(github.event.pull_request.labels.*.name,' ') }}"
- name: Get Project Version
id: get_project_version
run: "dart workflows_utils/get_project_version.dart"


promote-android:
if: ${{ (github.event.pull_request.merged == true) }}
needs: setup_dart_and_run_scripts
name: Promote Android Release from ${{needs.setup_dart_and_run_scripts.outputs.track}} to production
name: Promote Android Release from ${{env.track}} to production
runs-on: ubuntu-latest
steps:
- name: Setup Flutter
Expand All @@ -74,8 +57,12 @@ jobs:
# Checkout Repo code
- name: Checkout Repo
uses: actions/checkout@v3
with:
token: ${{ secrets.REPO_TOKEN }}
- name: Setup Dart Language
uses: dart-lang/setup-dart@v1.3
- name: Convert labels to track
run: "dart workflows_utils/labels_to_track.dart ${{ join(github.event.pull_request.labels.*.name,' ') }}"
- name: Get Project Version
run: "dart workflows_utils/get_project_version.dart"
# Setup Ruby, Bundler, Gemfile
- name: Setup Fastlane
uses: ruby/setup-ruby@72d59482210349c1114eca714b6c5df19fbbec34
Expand All @@ -98,19 +85,13 @@ jobs:
KEYSTORE_STORE_PASSWORD: ${{ secrets.KEYSTORE_STORE_PASSWORD }}
working-directory: android

- run: bundle exec fastlane android promote from:${{needs.setup_dart_and_run_scripts.outputs.track}} to:production
- run: bundle exec fastlane android promote from:${{env.track}} to:production
working-directory: android
env:
PLAY_STORE_CONFIG_JSON: ${{ secrets.PLAY_STORE_CONFIG_JSON }}

create_release:
if: ${{ (github.event.pull_request.merged == true) }}
needs: setup_dart_and_run_scripts
name: "Create Release"
runs-on: "ubuntu-latest"
steps:
- uses: "marvinpinto/action-automatic-releases@latest"
- name: Create Release for ${{env.project_version}}
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.REPO_TOKEN }}"
automatic_release_tag: "${{needs.setup_dart_and_run_scripts.outputs.project_version}}"
automatic_release_tag: "${{env.project_version}}"
prerelease: false
2 changes: 1 addition & 1 deletion .github/workflows/ci-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: flutter format --set-exit-if-changed .

- name: Statically analyze the Dart code for any errors.
run: flutter analyze ./lib
run: flutter analyze

- name: Run Test
run: flutter test
Loading