Skip to content

Commit

Permalink
Fix Unity tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser committed Dec 11, 2024
1 parent d2ee667 commit a0fe2f2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 22 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/unity-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true

- name: Checkout submodule
run: |
git submodule init
git submodule update
cd unity-tests~
git checkout jdetter/circle-game-testsuite
# Grab the branch name from the PR description. If it's not found, master will be used instead.
- name: Extract SpacetimeDB branch name or PR link from PR description
id: extract-branch
if: github.event_name == 'pull_request'
env:
description: ${{ github.event.pull_request.body }}
run: |
description=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
${{ github.event.pull_request.url }} | jq -r '.body')
# Check if description contains a branch name or a PR link
branch_or_pr=$(echo "$description" | grep -oP '(?<=SpacetimeDB branch name:\s).+')
echo "Branch or PR found: $branch_or_pr"
Expand Down Expand Up @@ -146,4 +141,3 @@ jobs:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}

15 changes: 5 additions & 10 deletions .github/workflows/unity-testsuite-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true

- name: Checkout submodule
run: |
git submodule init
git submodule update
cd unity-tests~
git checkout jdetter/circle-game-testsuite
# Grab the branch name from the PR description. If it's not found, master will be used instead.
- name: Extract SpacetimeDB branch name or PR link from PR description
id: extract-branch
if: github.event_name == 'pull_request'
env:
description: ${{ github.event.pull_request.body }}
run: |
description=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
${{ github.event.pull_request.url }} | jq -r '.body')
# Check if description contains a branch name or a PR link
branch_or_pr=$(echo "$description" | grep -oP '(?<=SpacetimeDB branch name:\s).+')
echo "Branch or PR found: $branch_or_pr"
Expand Down
1 change: 1 addition & 0 deletions examples~/quickstart/client/client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<CheckEolTargetFramework>false</CheckEolTargetFramework>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>

Expand Down
2 changes: 1 addition & 1 deletion unity-tests~

0 comments on commit a0fe2f2

Please sign in to comment.