From 10592ba4fd55a3dfca89a0f6f095522f79fea3f9 Mon Sep 17 00:00:00 2001 From: Martin Ball Date: Sun, 18 Oct 2026 10:07:11 +0100 Subject: [PATCH] ci(i18n): run clippy and tests for craft-i18n on all three platforms Co-Authored-By: Claude Opus 5.5 (1M context) --- .github/workflows/i18n.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/i18n.yml diff --git a/.github/workflows/i18n.yml b/.github/workflows/i18n.yml new file mode 100644 index 00000000..d7e6f5b5 --- /dev/null +++ b/.github/workflows/i18n.yml @@ -0,0 +1,29 @@ +name: Translations + +on: + workflow_dispatch: + push: + branches: [main] + paths: ['crates/i18n/**', 'Cargo.toml', 'Cargo.lock', '.github/workflows/i18n.yml'] + pull_request: + paths: ['crates/i18n/**', 'Cargo.toml', 'Cargo.lock', '.github/workflows/i18n.yml'] + +permissions: + contents: read + +jobs: + i18n: + timeout-minutes: 15 + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt, clippy + - run: cargo fmt --check + - run: cargo clippy -p craft-i18n --all-targets --locked -- -D warnings + - run: cargo test -p craft-i18n --locked -- --nocapture