Update i18n requirements #190
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: repo-checks | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby-version: | |
- '3.2' | |
- '3.3' | |
- '3.4' | |
steps: | |
- uses: zendesk/checkout@v3 | |
- uses: zendesk/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby-version }} | |
bundler-cache: true | |
- name: test | |
run: bundle exec rake | |
linter: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: zendesk/checkout@v3 | |
- uses: zendesk/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: lint | |
run: bundle exec rubocop | |
i18n: | |
name: I18n | |
runs-on: [ self-hosted, zendesk-stable ] | |
env: | |
ARTIFACTORY_API_KEY: ${{ secrets.ARTIFACTORY_API_KEY }} | |
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }} | |
BUNDLE_ZDREPO__JFROG__IO: "${{ secrets.BUNDLE_ZDREPO__JFROG__IO }}" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: zendesk/setup-ruby@v1 | |
with: | |
ruby-version: 3.4 | |
- name: Validate | |
run: | | |
gem install zendesk_i18n_dev_tools --source https://$BUNDLE_ZDREPO__JFROG__IO@zdrepo.jfrog.io/zdrepo/api/gems/gems-local/ | |
validate_string_sweep_files config/locales/translations/zendesk_apps_support.yml | |
tests_successful: | |
name: Tests passing? | |
needs: tests | |
if: always() | |
runs-on: ubuntu-latest | |
steps: | |
- run: | | |
if ${{ needs.tests.result == 'success' }} | |
then | |
echo "All tests pass" | |
else | |
echo "Some tests failed" | |
false | |
fi |