Skip to content

Commit

Permalink
CI #71
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuafolkken committed Sep 13, 2024
1 parent 9732350 commit 7a4cd78
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 1 deletion.
57 changes: 57 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Godot CI

on:
push:
branches: [main]

pull_request:
branches: [main]

workflow_dispatch:

concurrency:
group: ci-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
lint-and-format:
runs-on: ubuntu-latest
timeout-minutes: 10 # The overall timeout

steps:
- uses: actions/checkout@v4

- name: Install GDScript Toolkit
run: |
pip install gdtoolkit
- name: Lint
run: |
gdlint .
- name: Format Check
run: |
gdformat --check .
unit-test:
runs-on: ubuntu-latest
timeout-minutes: 10 # The overall timeout
permissions:
actions: write
checks: write
contents: write
pull-requests: write
statuses: write

steps:
- uses: actions/checkout@v4
with:
lfs: true

- uses: MikeSchulze/gdUnit4-action@v1.1.1
with:
godot-version: "4.3"
paths: |
res://tests/
timeout: 5
report-name: test_report.xml
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"editor.tabSize": 4,
"editor.insertSpaces": false,
// "editor.insertSpaces": false,
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
Expand Down

0 comments on commit 7a4cd78

Please sign in to comment.