init
This commit is contained in:
30
.github/workflows/spellcheck.yaml
vendored
Normal file
30
.github/workflows/spellcheck.yaml
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
name: "🧑🏫 Spellcheck"
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
# We previously used the cspell action, but it didn't seem to properly respect
|
||||
# the cspell.json file.
|
||||
spellcheck:
|
||||
name: "🧑🏫 Spellcheck"
|
||||
# Prevents duplicate workflows from running on PR's that originate from the
|
||||
# repository itself.
|
||||
if: >
|
||||
github.event_name != 'pull_request' ||
|
||||
github.event.pull_request.head.repo.full_name !=
|
||||
github.event.pull_request.base.repo.full_name
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: "."
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
name: 🧾 Checkout
|
||||
|
||||
- uses: streetsidesoftware/cspell-action@v8
|
||||
name: 📝 Check Spelling
|
||||
with:
|
||||
config: "./cspell.json"
|
||||
incremental_files_only: false
|
||||
root: "."
|
||||
35
.github/workflows/version_change.yaml
vendored
Normal file
35
.github/workflows/version_change.yaml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: "🗂 Version Change"
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: "Version (no 'v' prefix)"
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
create_version_pull_request:
|
||||
name: "🗂 Create Version Pull Request"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: "🧾 Checkout"
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: "📝 Change Version"
|
||||
uses: vers-one/dotnet-project-version-updater@v1.7
|
||||
with:
|
||||
file: "ChickenGameTest.csproj"
|
||||
version: ${{ github.event.inputs.version }}
|
||||
|
||||
- name: "⤴️ Create Pull Request"
|
||||
uses: peter-evans/create-pull-request@v8
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
branch: version/${{ github.event.inputs.version }}
|
||||
commit-message: >
|
||||
update version to ${{ github.event.inputs.version }}
|
||||
title: >
|
||||
"chore(project): update version to
|
||||
${{ github.event.inputs.version }}"
|
||||
body: >
|
||||
chore(project): update the version to
|
||||
${{ github.event.inputs.version }}.
|
||||
87
.github/workflows/visual_tests.yaml
vendored
Normal file
87
.github/workflows/visual_tests.yaml
vendored
Normal file
@@ -0,0 +1,87 @@
|
||||
name: 🖼 Visual Tests
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
visual_tests:
|
||||
name: 🖼 Visual Tests with ${{ matrix.render-driver }}
|
||||
runs-on: ubuntu-latest
|
||||
# Only run the workflow if it's not a PR or if it's a PR from a fork.
|
||||
# This prevents duplicate workflows from running on PR's that originate
|
||||
# from the repository itself.
|
||||
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
|
||||
env:
|
||||
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
||||
DOTNET_NOLOGO: true
|
||||
strategy:
|
||||
# Don't cancel other runners if one fails.
|
||||
fail-fast: false
|
||||
matrix:
|
||||
# Put the rendering drivers you want to use for tests here.
|
||||
render-driver: [vulkan] # also: opengl3
|
||||
defaults:
|
||||
run:
|
||||
# Use bash shells on all platforms.
|
||||
shell: bash
|
||||
steps:
|
||||
- name: 🧾 Checkout
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
# If using git-lfs (large file storage), this ensures that your files
|
||||
# are checked out properly.
|
||||
lfs: true
|
||||
# Make sure any git submodules are checked out as well.
|
||||
submodules: 'recursive'
|
||||
|
||||
- name: 💽 Setup .NET SDK
|
||||
uses: actions/setup-dotnet@v5
|
||||
with:
|
||||
# Use the .NET SDK from global.json in the root of the repository.
|
||||
global-json-file: global.json
|
||||
|
||||
- name: 📦 Restore Dependencies
|
||||
run: dotnet restore
|
||||
|
||||
- name: 💾 Add Graphics Driver Emulators Source
|
||||
run: |
|
||||
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
|
||||
sudo add-apt-repository -n ppa:kisak/kisak-mesa
|
||||
|
||||
- name: 💾 Install Graphics Driver Emulators
|
||||
uses: awalsh128/cache-apt-pkgs-action@latest
|
||||
with:
|
||||
packages: mesa-vulkan-drivers binutils x11-xserver-utils
|
||||
version: 1.0
|
||||
|
||||
- name: 🤖 Setup Godot
|
||||
uses: chickensoft-games/setup-godot@v2
|
||||
with:
|
||||
# Version must include major, minor, and patch, and be >= 4.0.0
|
||||
# Pre-release label is optional.
|
||||
#
|
||||
# In this case, we are using the version from global.json.
|
||||
#
|
||||
# This allows checks on renovatebot PR's to succeed whenever
|
||||
# renovatebot updates the Godot SDK version.
|
||||
version: global.json
|
||||
|
||||
- name: 🧑🔬 Generate .NET Bindings
|
||||
run: godot --headless --build-solutions --quit || exit 0
|
||||
|
||||
- name: 🌋 Run Tests in Godot
|
||||
run: |
|
||||
xvfb-run godot --audio-driver Dummy --rendering-driver ${{ matrix.render-driver }} --run-tests --quit-on-finish
|
||||
|
||||
# The --coverage flag is used by GoDotTest to control the exit code
|
||||
# of Godot by force-exiting through C#.
|
||||
#
|
||||
# Since Godot sometimes exits with non-zero exit codes (even on success),
|
||||
# adding this flag to the above command may allow GoDotTest to ensure that
|
||||
# this step will only fail when the tests fail, and not because Godot didn't
|
||||
# exit cleanly.
|
||||
#
|
||||
# However, note that the --coverage flag can sometimes cause other failures
|
||||
# by forcing Godot to exit before it can clean up its resources completely.
|
||||
|
||||
echo "Finished running tests in Godot with emulated ${{ matrix.render-driver }} graphics."
|
||||
Reference in New Issue
Block a user