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

Add tempDebug workflow for testing #49965

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
23 changes: 23 additions & 0 deletions .github/workflows/tempDebug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Temp workflow for debugging

on:
pull_request:
types: [opened, synchronize]

jobs:
jobOne:
if: ${{ 'true' == 'false' }}
runs-on: ubuntu-latest
steps:
- run: echo 'Hello'

jobTwo:
needs: jobOne
runs-on: ubuntu-latest
steps:
- run: echo ' world!'

jobThree:
runs-on: ubuntu-latest
steps:
- run: echo 'Hello world!'
19 changes: 8 additions & 11 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@ require 'ostruct'
skip_docs
opt_out_usage

KEY_GRADLE_APK_PATH = "gradleAPKOutputPath"
KEY_GRADLE_APK_PATH = "apkPath"
KEY_GRADLE_AAB_PATH = "gradleAABOutputPath"
KEY_IPA_PATH = "ipaPath"
KEY_DSYM_PATH = "dsymPath"

# Export environment variables in the parent shell.
# In a GitHub Actions environment, it will save the environment variables in the GITHUB_ENV file.
# In any other environment, it will save them to the current shell environment using the `export` command.
# Export environment variables in the GitHub Actions environment. Is a no-op if there's no GITHUB_ENV file.
def exportEnvVars(env_vars)
github_env_path = ENV['GITHUB_ENV']
if github_env_path && File.exist?(github_env_path)
Expand All @@ -33,13 +31,6 @@ def exportEnvVars(env_vars)
file.puts "#{key}=#{value}"
end
end
else
puts "Saving environment variables in parent shell..."
env_vars.each do |key, value|
puts "#{key}=#{value}"
command = "export #{key}=#{value}"
system(command)
end
end
end

Expand All @@ -63,6 +54,12 @@ def setIOSBuildOutputsInEnv()
end

platform :android do
lane :test do
exportEnvVars({
KEY_GRADLE_APK_PATH => 'FooBar',
})
end

desc "Generate a production AAB"
lane :build do
ENV["ENVFILE"]=".env.production"
Expand Down
Loading