Skip to content

Commit

Permalink
WIP: Migrate translation-tests to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
legoktm committed Aug 15, 2024
1 parent d3a0cb0 commit 93a9287
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/translation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Translation
on:
push:
schedule:
# Weekly on Sundays
- cron: '0 3 * * 0'

jobs:
locales:
runs-on: ubuntu-latest
outputs:
locales: ${{ steps.locales.outputs.locales }}
steps:
- uses: actions/checkout@v4
- name: Check Rust dependencies
id: locales
run: |
make supported-locales >> "$GITHUB_OUTPUT"
test:
runs-on: ubuntu-latest
needs: locales
strategy:
fail-fast: false
matrix:
locale: ${{ fromJson(needs.locales.outputs.locales) }}
steps:
- uses: actions/checkout@v4
- name: Build image
run: |
DOCKER_BUILD_VERBOSE=true ./securedrop/bin/dev-shell true
- name: Run translation tests
run: |
LOCALES="${{ matrix.locale }}" make translation-test

0 comments on commit 93a9287

Please sign in to comment.