-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
260 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
name: Nightlies | ||
|
||
on: # yamllint disable-line rule:truthy | ||
push: | ||
branches: main | ||
|
||
jobs: | ||
deliver-demo-nightlies: | ||
name: 🌙 Nightlies | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
platform: [ios, tvos] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Add Apple certificate | ||
run: | | ||
Scripts/add-apple-certificate.sh \ | ||
$RUNNER_TEMP \ | ||
${{ secrets.KEYCHAIN_PASSWORD }} \ | ||
${{ secrets.APPLE_DEV_CERTIFICATE }} \ | ||
${{ secrets.APPLE_DEV_CERTIFICATE_PASSWORD }} | ||
- name: Configure environment | ||
run: | | ||
Scripts/configure-environment.sh \ | ||
${{ secrets.APP_STORE_CONNECT_API_KEY }} | ||
- name: Archive the demo | ||
run: | | ||
make deliver-demo-nightly-${{ matrix.platform }} | ||
env: | ||
TEAM_ID: ${{ secrets.TEAM_ID }} | ||
KEY_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ID }} | ||
KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ISSUER_ID }} | ||
TESTFLIGHT_GROUPS: ${{ vars.TESTFLIGHT_GROUPS }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
--- | ||
name: Pull Request | ||
|
||
on: # yamllint disable-line rule:truthy | ||
merge_group: | ||
pull_request: | ||
|
||
jobs: | ||
check-quality: | ||
name: 🔎 Check quality | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run the quality check | ||
run: make check-quality | ||
|
||
build-documentation: | ||
name: 📚 Build documentation | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build the documentation | ||
run: make doc | ||
|
||
tests: | ||
name: 🧪 Tests | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
platform: [ios, tvos] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run tests | ||
run: make test-${{ matrix.platform }} | ||
|
||
archive-demos: | ||
name: 📦 Archives | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
platform: [ios, tvos] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Add Apple certificate | ||
run: | | ||
Scripts/add-apple-certificate.sh \ | ||
$RUNNER_TEMP \ | ||
${{ secrets.KEYCHAIN_PASSWORD }} \ | ||
${{ secrets.APPLE_DEV_CERTIFICATE }} \ | ||
${{ secrets.APPLE_DEV_CERTIFICATE_PASSWORD }} | ||
- name: Configure environment | ||
run: | | ||
Scripts/configure-environment.sh \ | ||
${{ secrets.APP_STORE_CONNECT_API_KEY }} | ||
- name: Archive the demo | ||
run: make archive-demo-${{ matrix.platform }} | ||
env: | ||
TEAM_ID: ${{ secrets.TEAM_ID }} | ||
KEY_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ID }} | ||
KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ISSUER_ID }} | ||
TESTFLIGHT_GROUPS: ${{ vars.TESTFLIGHT_GROUPS }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
name: Releases | ||
|
||
on: # yamllint disable-line rule:truthy | ||
push: | ||
branches: main | ||
tags: '*' | ||
|
||
jobs: | ||
deliver-demo-releases: | ||
name: 🚀 Releases | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
platform: [ios, tvos] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Add Apple certificate | ||
run: | | ||
Scripts/add-apple-certificate.sh \ | ||
$RUNNER_TEMP \ | ||
${{ secrets.KEYCHAIN_PASSWORD }} \ | ||
${{ secrets.APPLE_DEV_CERTIFICATE }} \ | ||
${{ secrets.APPLE_DEV_CERTIFICATE_PASSWORD }} | ||
- name: Configure environment | ||
run: | | ||
Scripts/configure-environment.sh \ | ||
${{ secrets.APP_STORE_CONNECT_API_KEY }} | ||
- name: Archive the demo | ||
run: | | ||
make deliver-demo-release-${{ matrix.platform }} | ||
env: | ||
TEAM_ID: ${{ secrets.TEAM_ID }} | ||
KEY_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ID }} | ||
KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ISSUER_ID }} | ||
TESTFLIGHT_GROUPS: ${{ vars.TESTFLIGHT_GROUPS }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,6 @@ DerivedData/ | |
/fastlane/README.md | ||
/fastlane/report.xml | ||
/fastlane/test_output | ||
/Configuration | ||
|
||
/.bundle | ||
/vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
#!/bin/bash | ||
|
||
GENERATED_FILE_PATH="$2/PackageInfo.swift" | ||
|
||
if [ "$#" -ne 2 ]; then | ||
echo "usage: $(basename "$0") repository_directory output_directory" | ||
exit 1 | ||
fi | ||
|
||
if ! VERSION=$(git --git-dir "$1/.git" describe --tags 2> /dev/null); then | ||
VERSION="0.0.0" | ||
if ! version=$(git --git-dir "$1/.git" describe --tags 2> /dev/null); then | ||
version="0.0.0" | ||
fi | ||
|
||
if ! SHORT_VERSION=$(git --git-dir "$1/.git" describe --tags --abbrev=0 2> /dev/null); then | ||
SHORT_VERSION="0.0.0" | ||
if ! short_version=$(git --git-dir "$1/.git" describe --tags --abbrev=0 2> /dev/null); then | ||
short_version="0.0.0" | ||
fi | ||
|
||
GENERATED_FILE_PATH="$2/PackageInfo.swift" | ||
|
||
cat > "$GENERATED_FILE_PATH" <<- EOF | ||
// This file is generated automatically. Do not modify. | ||
import Foundation | ||
enum PackageInfo { | ||
static let version = "$VERSION" | ||
static let shortVersion = "$SHORT_VERSION" | ||
static let version = "$version" | ||
static let shortVersion = "$short_version" | ||
} | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.