fix(i18n): enable hot-reload language switching without restart #3
Workflow file for this run
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: CI | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - alpha | |
| - beta | |
| push: | |
| branches-ignore: | |
| - main | |
| - alpha | |
| - beta | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v1 | |
| with: | |
| bun-version: 1.2.22 # Pin version - 1.3.x breaks --external in compiled binaries | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Type check | |
| run: bun run typecheck | |
| - name: Build | |
| run: bun run build | |
| - name: Run tests | |
| run: bun run test | |
| build-test: | |
| needs: test | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [macos-latest, ubuntu-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v1 | |
| with: | |
| bun-version: 1.2.22 # Pin version - 1.3.x breaks --external in compiled binaries | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Build | |
| run: bun run build | |
| - name: Test compilation | |
| run: | | |
| mkdir -p binaries | |
| bun build ./src/index.ts --compile --external react-devtools-core --outfile ./binaries/autohand-test | |
| - name: Verify binary (Unix) | |
| if: runner.os != 'Windows' | |
| run: | | |
| chmod +x ./binaries/autohand-test | |
| ./binaries/autohand-test --help |