Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
markgravity committed Feb 26, 2024
1 parent e715a8a commit ab5b3cd
Show file tree
Hide file tree
Showing 6 changed files with 410 additions and 17 deletions.
28 changes: 27 additions & 1 deletion .github/workflows/test_add_device_profile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ name: Test Add device and regenerate profiles with fastlane match
### MATCH_PASSWORD

on:
pull_request:
workflow_dispatch:
inputs:
devices:
Expand All @@ -23,7 +24,7 @@ on:
jobs:
create_files:
name: Create certificates and profiles
runs-on: [self-hosted, macOS]
runs-on: macOS-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
Expand All @@ -35,6 +36,28 @@ jobs:
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Cache Pods
uses: actions/cache@v3
id: cocoapodCache
with:
path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: Start Install Script for Template App
run: swift run --package-path Scripts/Swift/iOSTemplateMaker iOSTemplateMaker make --bundle-id-production co.nimblehq.ios.templates --bundle-id-staging co.nimblehq.ios.templates.staging --project-name TemplateApp --interface UIKit

- name: Start Setup Script for Template App Firebase Upload
run: swift run --package-path Scripts/Swift/iOSTemplateMaker iOSTemplateMaker make-test-firebase
env:
MATCH_REPO: ${{ secrets.MATCH_REPO }}
STAGING_FIREBASE_APP_ID: ${{ secrets.STAGING_FIREBASE_APP_ID }}
TEAM_ID: ${{ secrets.TEAM_ID }}

- name: Set Up Test Project for Firebase
run: bundle exec fastlane setUpTestProject

- name: Bundle install
run: bundle install

Expand All @@ -43,6 +66,9 @@ jobs:
env:
MATCH_PASSWORD: ${{ secrets.MATCH_PASS }}
DEVICES: ${{ inputs.devices }}
APPSTORE_CONNECT_API_KEY: ${{ secrets.APPSTORE_CONNECT_API_KEY }}
API_KEY_ID: ${{ secrets.API_KEY_ID }}
ISSUER_ID: ${{ secrets.ISSUER_ID }}
PLATFORM: ${{ inputs.platform }}

- name: Clean up keychain
Expand Down
Loading

0 comments on commit ab5b3cd

Please sign in to comment.