Skip to content

Commit

Permalink
Fix unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
pixlwave committed Feb 24, 2025
1 parent bea27eb commit 1413207
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ui_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ jobs:
- name: Setup environment
run: source ci_scripts/ci_common.sh && setup_github_actions_environment

- name: Configure secrets
run: bundle exec fastlane config_secrets
env:
MAPLIBRE_API_KEY: WeDontNeedOneForUnitTests
SENTRY_DSN: https://sentry.localhost
POSTHOG_HOST: ${{ secrets.POSTHOG_HOST_DEV }}
POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY_DEV }}
RAGESHAKE_SERVER_URL: https://rageshake.localhost

- name: Run tests
run: |
if [[ -z "${{ github.event.inputs.test_name }}" ]]; then
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/unit_tests_enterprise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ jobs:
run: bundle exec fastlane config_enterprise
env:
MAPLIBRE_API_KEY: WeDontNeedOneForUnitTests
SENTRY_DSN: https://sentry.localhost
POSTHOG_HOST: ${{ secrets.POSTHOG_HOST_DEV }}
POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY_DEV }}
RAGESHAKE_SERVER_URL: https://rageshake.localhost

- name: SwiftFormat
run: swiftformat --lint .
Expand Down
2 changes: 1 addition & 1 deletion Secrets/Secrets.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
// Analytics and Diagnostics

sentryDSN = read("env:SENTRY_DSN")
postHogAPIKey = read("env:POSTHOG_API_KEY")
postHogHost = read("env:POSTHOG_HOST")
postHogAPIKey = read("env:POSTHOG_API_KEY")
rageshakeServerURL = read("env:RAGESHAKE_SERVER_URL")

// Maps
Expand Down
4 changes: 2 additions & 2 deletions ci_scripts/ci_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ setup_xcode_cloud_environment () {
}

install_xcode_cloud_brew_dependencies () {
brew update && brew install xcodegen pkl
brew update && brew install xcodegen swiftgen pkl
}

setup_github_actions_environment() {
unset HOMEBREW_NO_INSTALL_FROM_API
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1

brew update && brew install xcodegen swiftlint swiftformat git-lfs pkl a7ex/homebrew-formulae/xcresultparser
brew update && brew install xcodegen swiftlint swiftformat swiftgen git-lfs pkl a7ex/homebrew-formulae/xcresultparser

bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
Expand Down

0 comments on commit 1413207

Please sign in to comment.