Skip to content

Commit

Permalink
Run test job
Browse files Browse the repository at this point in the history
But tests still disabled.
  • Loading branch information
lihop committed Feb 13, 2024
1 parent 420c774 commit 81f2229
Showing 1 changed file with 28 additions and 14 deletions.
42 changes: 28 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:
name: imports-${{ matrix.os }}
path: .godot/

build_docker:
name: Build Docker (linux, ${{ matrix.arch }}, ${{ matrix.target }})
build-linux:
name: Build (linux, ${{ matrix.arch }}, ${{ matrix.target }})
runs-on: ubuntu-22.04
strategy:
fail-fast: false
Expand Down Expand Up @@ -73,8 +73,8 @@ jobs:
path: |
addons/godot_xterm/native/bin/*.so
build_native:
name: Build Native (${{ matrix.platform }}, ${{ matrix.arch }}, ${{ matrix.target}})
build-other-platforms:
name: Build (${{ matrix.platform }}, ${{ matrix.arch }}, ${{ matrix.target}})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -198,7 +198,7 @@ jobs:
html5_export:
if: false # Temporarily disabled.
name: "HTML5 Export"
needs: [build_docker, build_native]
needs: [build-linux, build-other-platforms]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -246,25 +246,37 @@ jobs:
path: docs/demo

test:
if: false # Temporarily disabled.
name: "Test"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
platform: [linux, macos, windows]
platform: [web, macos, windows]
target: [release, debug]
bits: [64, 32]
godot_version: ["v4.2.1-stable"]
godot_version: ["4.2.1-stable"]
exclude:
- platform: web
bits: 64
- platform: macos
bits: 32
include:
- platform: linux
- platform: web
os: ubuntu-22.04
- platform: macos
os: macos-12
- platform: windows
os: windows-2022
exclude:
- platform: web
arch: wasm32
- platform: macos
arch: universal
- platform: windows
bits: 64
arch: x86_64
- platform: windows
bits: 32
arch: x86_32
steps:
- uses: actions/checkout@v4
- name: Setup Godot
Expand All @@ -287,20 +299,22 @@ jobs:
uses: fountainhead/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: Build Docker (linux, x86_${{ matrix.bits }}, debug)
checkName: Build (${{ matrix.platform }}, ${{ matrix.arch }}, debug)
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Install debug binary build artifacts
uses: actions/download-artifact@v3
with:
name: libgodot-xterm-debug
path: addons/godot_xterm/native/bin
- name: Run tests
run: godot -s addons/gut/gut_cmdln.gd -gconfig=test/.gutconfig.ci.json
# Skip.
run: echo skip #godot -s addons/gut/gut_cmdln.gd -gconfig=test/.gutconfig.ci.json
- name: Run unix tests
if: ${{ matrix.os != 'windows-2022' }}
run: godot -s addons/gut/gut_cmdln.gd -gconfig=test/.gutconfig.unix.json
# Skip.
run: echo skip #godot -s addons/gut/gut_cmdln.gd -gconfig=test/.gutconfig.unix.json

delete_imports:
delete-imports:
name: "Delete Imports"
needs: [test]
runs-on: ubuntu-22.04
Expand Down

0 comments on commit 81f2229

Please sign in to comment.