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