Skip to content

Commit

Permalink
github action update 10
Browse files Browse the repository at this point in the history
  • Loading branch information
Dev-Corgi committed Jan 9, 2024
1 parent 10b662a commit c436a18
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 30 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup JDK
uses: actions/setup-java@v1
with:
java-version: 11

- name: Set up ruby env
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.2
bundler-cache: true
# bundler-cache: true

# - name: Run tests
# run: bundle exec fastlane test
Expand Down
2 changes: 1 addition & 1 deletion fastlane/Appfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
json_key_file("?C:/googlekeystore/umc-5th-campusnote-a31e80b26610.json") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one
json_key_file("?./umc-5th-campusnote-a31e80b26610.json") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one
package_name("com.notation.campusnote") # e.g. com.krausefx.app
32 changes: 19 additions & 13 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ default_platform(:android)

platform :android do
before_all do
ENV["SLACK_URL"] = "https://hooks.slack.com/services/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"
ENV["SLACK_URL"] = "https://hooks.slack.com/services/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"
end

desc "Runs all the tests"
Expand All @@ -42,32 +42,38 @@ platform :android do

desc "Lane for distribution"
lane :distribute do
gradle( task: "clean assembleRelease")
gradle(task: "clean assembleRelease")
gradle(
task: "assemble",
)
firebase_app_distribution(
app: "1:152814340752:android:d334473d644773a287a615",
debug: true
)
end

lane :slack_build do
gradle( task: "clean assembleRelease")
gradle(task: "clean assembleRelease")
gradle(
task: "assemble",
)
firebase_app_distribution(
app: "1:152814340752:android:d334473d644773a287a615",
testers: "[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]",
debug: true
)
slack(message: "Build Successful!")

latest_release = firebase_app_distribution_get_latest_release(
app: "1:152814340752:android:d334473d644773a287a615",
debug: true
)

slack(
message: "successful deploy :rocket: link for app is : " + latest_release[:testingUri]
)
end

# Add this to your Fastfile
after_all do |lane|
latest_release = firebase_app_distribution_get_latest_release(
app: "1:152814340752:android:d334473d644773a287a615",
debug: true
)
slack(
message: "successful deploy :rocket: link for app is : " + latest_release[:testingUri]
)
end

error do |lane, exception|
slack(
Expand Down
13 changes: 4 additions & 9 deletions fastlane/report.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,22 @@



<testcase classname="fastlane.lanes" name="0: default_platform" time="0.0019954">
<testcase classname="fastlane.lanes" name="0: default_platform" time="0.0044292">

</testcase>


<testcase classname="fastlane.lanes" name="1: clean assembleRelease" time="14.2086075">
<testcase classname="fastlane.lanes" name="1: clean assembleRelease" time="41.6955692">

</testcase>


<testcase classname="fastlane.lanes" name="2: firebase_app_distribution" time="8.8529303">
<testcase classname="fastlane.lanes" name="2: assemble" time="12.4683229">

</testcase>


<testcase classname="fastlane.lanes" name="3: firebase_app_distribution_get_latest_release" time="2.7471949">

</testcase>


<testcase classname="fastlane.lanes" name="4: slack" time="0.9162131">
<testcase classname="fastlane.lanes" name="3: firebase_app_distribution" time="9.1252062">

</testcase>

Expand Down
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ kotlin.code.style=official
# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
android.nonTransitiveRClass=true
android.injected.testOnly=false

0 comments on commit c436a18

Please sign in to comment.