forked from TTT-2/TTT2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
852 changed files
with
79,437 additions
and
50,080 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# .git-blame-ignore-revs | ||
# | ||
# Run stylua formatter on entire codebase | ||
df7bf4216cf31d680c0d95bd576e46193ce2dcd6 |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,60 @@ | ||
name: CI | ||
|
||
env: | ||
GLUALINT_VERSION: 1.24.2 | ||
NEODOC_VERSION: 0.1.4 | ||
GLUALINT_VERSION: 1.26.0 | ||
NEODOC_VERSION: 0.1.6 | ||
STYLUA_VERSION: 0.20.0 | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
# events but only for the master branch | ||
on: | ||
push: | ||
branches: [ master ] | ||
branches: [master] | ||
pull_request: | ||
branches: [ master ] | ||
branches: [master] | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
lint: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Download & extract glualint | ||
run: | | ||
wget -c https://github.com/FPtje/GLuaFixer/releases/download/${GLUALINT_VERSION}/glualint-${GLUALINT_VERSION}-x86_64-linux.zip -O glualint.zip | ||
unzip -u glualint.zip | ||
rm glualint.zip | ||
- name: Download & extract glualint | ||
run: | | ||
wget -c https://github.com/FPtje/GLuaFixer/releases/download/${GLUALINT_VERSION}/glualint-${GLUALINT_VERSION}-x86_64-linux.zip -O glualint.zip | ||
unzip -u glualint.zip | ||
rm glualint.zip | ||
- name: Check code with glualint | ||
run: ./glualint . | ||
- name: Check code with glualint | ||
run: ./glualint . | ||
|
||
style: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: JohnnyMorganz/stylua-action@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
version: ${{ env.STYLUA_VERSION }} | ||
args: --check . | ||
|
||
doc-check: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup .NET Core | ||
run: sudo apt-get install -y mono-complete | ||
- name: Setup .NET Core | ||
run: sudo apt-get install -y mono-complete | ||
|
||
- name: Download & extract neodoc | ||
run: | | ||
wget -c https://github.com/TTT-2/NeoDoc/releases/download/v${NEODOC_VERSION}/NeoDoc-v${NEODOC_VERSION}.zip -O neodoc.zip | ||
unzip -u neodoc.zip | ||
rm neodoc.zip | ||
- name: Download & extract neodoc | ||
run: | | ||
wget -c https://github.com/TTT-2/NeoDoc/releases/download/v${NEODOC_VERSION}/NeoDoc-v${NEODOC_VERSION}.zip -O neodoc.zip | ||
unzip -u neodoc.zip | ||
rm neodoc.zip | ||
- name: Check code with neodoc | ||
run: mono NeoDoc.exe . | ||
- name: Check code with neodoc | ||
run: mono NeoDoc.exe . |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: LangParser | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update-language-files: | ||
# guard against running on forks as they are probably not setup for this | ||
if: github.repository_owner == 'TTT-2' | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout ttt2 repo | ||
uses: actions/checkout@v4 | ||
with: | ||
path: ttt2 | ||
|
||
- name: Checkout language parser repo | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: TTT-2/ttt2-language_parser | ||
path: ttt2-language_parser | ||
|
||
- name: run language parser | ||
run: python ttt2-language_parser/parse.py --in "$GITHUB_WORKSPACE/ttt2/lua/terrortown/lang" --out "$GITHUB_WORKSPACE/ttt2/lua/terrortown/lang" --base en --ignore chef | ||
|
||
- name: generate app token | ||
uses: actions/create-github-app-token@v1 | ||
id: generate-token | ||
with: | ||
app-id: ${{ secrets.APP_ID }} | ||
private-key: ${{ secrets.APP_PRIVATE_KEY }} | ||
|
||
- name: Create Pull Request | ||
id: ci-update-language-files | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
token: ${{ steps.generate-token.outputs.token }} | ||
path: ttt2 | ||
add-paths: "lua/terrortown/lang/*.lua" | ||
commit-message: Update language files | ||
branch: ci-update-language-files | ||
title: "Language: Update language files" | ||
body: | | ||
Auto-generated by github actions and the [ttt2-language_parser](https://github.com/TTT-2/ttt2-language_parser) | ||
labels: skip-changelog | ||
|
||
- name: Setup PR automerge and squash | ||
run: | | ||
cd ttt2 | ||
gh pr merge ci-update-language-files --auto --squash | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,5 +55,6 @@ Temporary Items | |
todo.txt | ||
addon.json | ||
*.gma | ||
.luarc.json | ||
|
||
ttt2.jpg |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json", | ||
"diagnostics.disable": [ | ||
"duplicate-set-field", | ||
"unused-local", | ||
"lowercase-global", | ||
"inject-field", | ||
"undefined-field", | ||
"param-type-mismatch", | ||
"cast-local-type" | ||
], | ||
"diagnostics.globals": [ | ||
"GM", | ||
"BaseClass", | ||
"CLGAMEMODEMENU", | ||
"CLGAMEMODESUBMENU", | ||
"CLSCOREMENU", | ||
"EVENT", | ||
"TEXFILTER" | ||
], | ||
"diagnostics.ignoredFiles": "Enable", | ||
"format.enable": false, | ||
"runtime.special": { | ||
"include": "require", | ||
"includeCS": "require" | ||
}, | ||
"runtime.version": "Lua 5.1", | ||
"runtime.nonstandardSymbol": [ | ||
"continue" | ||
], | ||
"workspace.checkThirdParty": false | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lua/terrortown/lang/*.lua |
Oops, something went wrong.