From a6bb36224697976875b8714ff75298ffb99c98dc Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Sun, 26 Oct 2025 06:36:06 +0100 Subject: [PATCH] Rename SwiftLint workflow file --- .github/workflows/swiftlint.yml | 20 ++++++++++++ .github/workflows/validate_translations.yml | 35 --------------------- 2 files changed, 20 insertions(+), 35 deletions(-) create mode 100644 .github/workflows/swiftlint.yml delete mode 100644 .github/workflows/validate_translations.yml diff --git a/.github/workflows/swiftlint.yml b/.github/workflows/swiftlint.yml new file mode 100644 index 000000000..3790e70c8 --- /dev/null +++ b/.github/workflows/swiftlint.yml @@ -0,0 +1,20 @@ +name: SwiftLint + +on: + push: + branches: + - main + pull_request: + +jobs: + swiftlint: + name: Run SwiftLint + runs-on: macos-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Run SwiftLint + uses: realm/SwiftLint@v3 + with: + args: --strict diff --git a/.github/workflows/validate_translations.yml b/.github/workflows/validate_translations.yml deleted file mode 100644 index eaac1e3ad..000000000 --- a/.github/workflows/validate_translations.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Validate Translations - -on: - pull_request: - types: [synchronize, opened, reopened, labeled, unlabeled, edited] - -jobs: - main: - name: Validate Translations - runs-on: macOS-latest - steps: - - name: git checkout - uses: actions/checkout@v3 - - - name: ruby versions - run: | - ruby --version - gem --version - bundler --version - - - name: ruby setup - uses: ruby/setup-ruby@v1 - with: - ruby-version: 3.3 - bundler-cache: true - - # additional steps here, if needed - - - name: Clone SwiftPolyglot - run: git clone https://github.com/appdecostudio/SwiftPolyglot.git --branch 0.2.0 - - - name: Build and Run SwiftPolyglot - run: | - swift build --package-path ./SwiftPolyglot --configuration release - swift run --package-path ./SwiftPolyglot swiftpolyglot "en,eu,be,ca,zh-Hans,zh-Hant,nl,en-GB,fr,de,it,ja,ko,nb,pl,pt-BR,es,tr,uk" \ No newline at end of file