-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (43 loc) · 1.18 KB
/
tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
name: Test VirtualSlate
on:
pull_request: { }
jobs:
LintCPP:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
statuses: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Lint Code Base
uses: super-linter/super-linter@v5
env:
VALIDATE_ALL_CODEBASE: false
VALIDATE_CLANG_FORMAT: false
GITHUB_ACTIONS_CONFIG_FILE: false
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LintGDScript:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.10.0
- name: Install Dependencies
run: python -m pip install --upgrade pip
- name: Get Linter
run: pip install "gdtoolkit==4.*"
- name: Add linter to path
run: echo "${HOME}/.local/bin" >> $GITHUB_PATH
- name: Run Linter
run: find project -name *.gd -exec gdlint {} \; 2>> gdErrors.txt
- name: Show Errors
run: cat gdErrors.txt