From c595eba5df24d5f6896035a2bd986e8e4b94245c Mon Sep 17 00:00:00 2001 From: Matt Kiazyk Date: Sat, 16 Mar 2024 21:11:42 -0500 Subject: [PATCH] Test localizable.xcstrings Validation action --- .github/workflows/xcstrings.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/xcstrings.yml diff --git a/.github/workflows/xcstrings.yml b/.github/workflows/xcstrings.yml new file mode 100644 index 0000000..25488c0 --- /dev/null +++ b/.github/workflows/xcstrings.yml @@ -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 \ No newline at end of file