Skip to content

Commit

Permalink
Add Swiftgen in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanov91 committed Mar 18, 2023
1 parent cf9924a commit 0c9c91f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/crowdin.yml → .github/workflows/localize.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Crowdin
name: Localize
on:
push:
branches:
Expand Down Expand Up @@ -29,3 +29,21 @@ jobs:
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

swift_format:
name: swift-format
runs-on: macOS-11
steps:
- uses: actions/checkout@v2
- name: Xcode Select
run: sudo xcode-select -s /Applications/Xcode_14.2.app
- name: Install
run: brew install swiftgen
- name: Generate
run: swiftgen
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Run swiftgen
branch: 'main'
env:
GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }}

8 changes: 8 additions & 0 deletions swiftgen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
strings:
inputs: Sources/OversizeLocalizable/Localize/en.lproj/Localizable.strings
outputs:
- templateName: structured-swift5
output: Sources/OversizeLocalizable/L10n.swift
params:
enumName: L10n
publicAccess: 1

0 comments on commit 0c9c91f

Please sign in to comment.