Skip to content

Merge pull request #10 from chickensoft-games/fix/edge-cases #43

Merge pull request #10 from chickensoft-games/fix/edge-cases

Merge pull request #10 from chickensoft-games/fix/edge-cases #43

Workflow file for this run

name: 🚥 Tests
on:
push:
pull_request:
jobs:
tests:
name: 🧪 Evaluate Tests on ${{ matrix.os }}
# 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
runs-on: ${{ matrix.os }}
strategy:
# Don't cancel other OS runners if one fails.
fail-fast: false
matrix:
# Put the operating systems you want to run on here.
#
# You can change windows-2019 to windows-latest, but windows-2019
# was running in half the time. Try it out and see what works best.
os: [macos-latest]
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true
defaults:
run:
# Use bash shells on all platforms.
shell: bash
steps:
- name: 🧾 Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_BASIC }}
lfs: true
submodules: "recursive"
- name: 💽 Setup .NET SDK
uses: actions/setup-dotnet@v4
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: 🦺 Build Projects
run: dotnet build-server shutdown; dotnet build --no-incremental
- name: 🧪 Run Tests
run: dotnet test