Test localizable.xcstrings Validation action

This commit is contained in:
Matt Kiazyk 2024-03-16 21:11:42 -05:00
parent 61bee6c84f
commit c595eba5df

21
.github/workflows/xcstrings.yml vendored Normal file
View file

@ -0,0 +1,21 @@
name: XCStrings Validation
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Clone SwiftPolyglot
run: git clone https://github.com/appdecostudio/SwiftPolyglot.git
- name: validate translations
run: |
swift build --package-path ./SwiftPolyglot --configuration release
swift run --package-path ./SwiftPolyglot swiftpolyglot "ca,de,el,es,fi,fr,hi,it,ja,ko,nl,pl,pt-BR,ru,tr,uk,zh-Hans,zh-Hant" --errorOnMissing