Continuous Integration #1
This file contains 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: Continuous Integration | |
on: | |
push: | |
branches: ['trunk'] | |
pull_request: | |
branches: ['trunk'] | |
workflow_dispatch: | |
permissions: {} | |
concurrency: | |
group: 'ci-${{ github.ref }}' | |
cancel-in-progress: true | |
jobs: | |
run_tests: | |
strategy: | |
matrix: | |
lang: | |
- 'ar' | |
- 'ascii' | |
- 'bg' | |
- 'ceb' | |
- 'core' | |
- 'cs' | |
- 'da' | |
- 'de' | |
- 'el' | |
- 'en' | |
- 'es' | |
- 'fi' | |
- 'fr' | |
- 'full' | |
- 'he' | |
- 'hi' | |
- 'hr' | |
- 'ht' | |
- 'hu' | |
- 'is' | |
- 'it' | |
- 'ja' | |
- 'jv' | |
- 'ko' | |
- 'la' | |
- 'mk' | |
- 'mr' | |
- 'ne' | |
- 'nl' | |
- 'no' | |
- 'or' | |
- 'pa' | |
- 'pl' | |
- 'pt' | |
- 'ro' | |
- 'ru' | |
- 'sk' | |
- 'so' | |
- 'sq' | |
- 'sr' | |
- 'sv' | |
- 'sw' | |
- 'ta' | |
- 'th' | |
- 'tl' | |
- 'tr' | |
- 'uk' | |
- 'ur' | |
- 'vi' | |
- 'zh' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- name: Install dependencies | |
run: bun install | |
- name: Run build script | |
run: bun run build ${{matrix.lang}} | |
- name: Build additional lang for core | |
if: ${{matrix.lang == 'core'}} | |
run: bun run build en | |
- name: Run tests | |
run: bun test test/js/${{matrix.lang}}.spec.js |