feat: add i18n support with Simplified Chinese (zh-cn) translations #1444
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: Continuous integration | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| name: Test | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| godot_version: ["4.7", "4.5.1"] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v5.0.0 | |
| with: | |
| node-version: 22.x | |
| - name: Install fgvm (Ubuntu) | |
| if: matrix.os == 'ubuntu-latest' | |
| run: | | |
| curl -fLO https://github.com/patricktcoakley/fgvm/releases/latest/download/fgvm-linux-x64.tar.gz | |
| tar -xzf fgvm-linux-x64.tar.gz | |
| chmod +x fgvm | |
| sudo mv fgvm /usr/local/bin/fgvm | |
| - name: Install fgvm (Windows) | |
| if: matrix.os == 'windows-latest' | |
| run: | | |
| Invoke-WebRequest -Uri "https://github.com/patricktcoakley/fgvm/releases/latest/download/fgvm-win-x64.zip" -OutFile "fgvm.zip" | |
| Expand-Archive -Path "fgvm.zip" -DestinationPath "C:\fgvm" | |
| echo "C:\fgvm" | Out-File -Encoding ascii -FilePath $env:GITHUB_PATH | |
| - name: Cache Godot installations | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ runner.temp }}/fgvm/fgvm/installations | |
| key: fgvm-${{ matrix.os }}-${{ matrix.godot_version }} | |
| - name: Install Godot ${{ matrix.godot_version }} | |
| run: fgvm install ${{ matrix.godot_version }} | |
| env: | |
| FGVM_HOME: ${{ runner.temp }}/fgvm | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Run tests against Godot ${{ matrix.godot_version }} | |
| uses: coactions/setup-xvfb@v1 | |
| with: | |
| run: | | |
| npm run test:engine -- ${{ matrix.godot_version }} | |
| env: | |
| GODOT_TOOLS_DEBUG: "false" | |
| FGVM_HOME: ${{ runner.temp }}/fgvm | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v5.0.0 | |
| with: | |
| node-version: 22.x | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Lint and build extension | |
| run: | | |
| npm run lint | |
| npm run package -- --out godot-tools.vsix | |
| ls -l godot-tools.vsix | |
| - name: Upload extension VSIX | |
| uses: actions/upload-artifact@v4.6.2 | |
| with: | |
| name: godot-tools | |
| path: godot-tools.vsix |