Modify Simplified Chinese Translation #17
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: Arma | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the source code | |
uses: actions/checkout@master | |
- name: Validate SQF | |
run: python3 tools/sqf_validator.py | |
- name: Validate Config | |
run: python3 tools/config_style_checker.py | |
- name: Check for BOM | |
uses: arma-actions/bom-check@master | |
- name: .editorconfig Checker | |
uses: editorconfig-checker/action-editorconfig-checker@v1.0.0 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v2.1.2 | |
- name: Run Stringtable Checker | |
run: cd tools/stringtableChecker && npm i &> /dev/null && cd ../../ && node tools/stringtableChecker/stringTableChecker.js | |
- name: Check Functions | |
run: node tools/prepchecker.js | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the source code | |
uses: actions/checkout@master | |
- name: Lint (sqflint) | |
uses: jokoho48/sqflint@master | |
continue-on-error: true # No failure due to many false-positives | |
- uses: actions/upload-artifact@master | |
with: | |
name: 'sqfLint Log' | |
path: 'sqf.log' | |
- name: Validate SQFLinter Logs | |
run: python3 tools/sqf_linter_LogChecker.py | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
with: | |
fetch-depth: 1 | |
- name: Build addon with HEMTT | |
uses: arma-actions/hemtt@master | |
with: | |
command: 'build --release' | |
- uses: actions/upload-artifact@master | |
with: | |
name: '@LambsDanger' | |
path: 'releases/@LambsDanger*.zip' | |
stringtables: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Python packages | |
run: | | |
pip3 install wheel | |
pip3 install setuptools | |
pip3 install pygithub | |
pip3 install pygithub3 | |
- name: Checkout the source code | |
uses: actions/checkout@master | |
- name: Validate Stringtables | |
run: python3 tools/stringtable_validator.py | |
- name: Update Translation issue | |
if: github.repository == 'nk3nny/LambsDanger' && github.ref == 'refs/heads/master' && ! contains(github.event.head_commit.message, '[ci skip]') | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: python3 tools/stringtableDeploy.py |