Improve stencil comments #1366
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
name: Genesis | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
DEVELOPER_DIR: /Applications/Xcode_15.4.app/Contents/Developer | |
jobs: | |
genesis: | |
name: Genesis | |
runs-on: macos-latest | |
env: | |
SIMULATOR: iPhone 15 | |
steps: | |
- name: Install dependencies | |
run: | | |
brew install mint xcodegen needle mockolo | |
mint install yonaskolb/genesis | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
- name: Create temporary directory | |
id: mktemp | |
run: echo "directory=$(mktemp -d)" >> "$GITHUB_OUTPUT" | |
- name: Generate project files | |
working-directory: ${{ steps.mktemp.outputs.directory }} | |
run: > | |
mint run genesis generate "${{ github.workspace }}/genesis.yml" --options | |
"nodes:0.0.0, project:Tinder, prefix:com.tinder, author:Author, date:$(date +"%-m/%-d/%y"), path:${{ github.workspace }}" | |
- name: Generate Xcode project | |
working-directory: ${{ steps.mktemp.outputs.directory }} | |
run: xcodegen | |
- name: Remove @MainActor | |
working-directory: ${{ steps.mktemp.outputs.directory }} | |
run: find "Tinder/Sources" -type f -name "*.swift" -exec sed -i '' '/@MainActor/,+0d' {} \; | |
- name: Download swiftlint binary | |
working-directory: ${{ steps.mktemp.outputs.directory }} | |
run: swift package resolve | |
- name: Lint | |
working-directory: ${{ steps.mktemp.outputs.directory }} | |
run: > | |
"$(find ".build/artifacts/swiftlint" -type f -name swiftlint -perm +111 -print -quit)" | |
lint --strict --reporter github-actions-logging | |
- name: Resolve package dependencies | |
working-directory: ${{ steps.mktemp.outputs.directory }} | |
run: xcodebuild -resolvePackageDependencies | |
- name: Build | |
working-directory: ${{ steps.mktemp.outputs.directory }} | |
run: > | |
xcodebuild | |
build-for-testing | |
-scheme "Tinder" | |
-destination "name=$SIMULATOR,OS=latest" | |
-skipPackagePluginValidation | |
CODE_SIGN_IDENTITY="" | |
CODE_SIGNING_ALLOWED="NO" | |
CODE_SIGNING_REQUIRED="NO" | |
- name: Test | |
working-directory: ${{ steps.mktemp.outputs.directory }} | |
run: > | |
xcodebuild | |
test-without-building | |
-scheme "Tinder" | |
-destination "name=$SIMULATOR,OS=latest" |