Joanna May 41ce0e3de8
feat: allow dotnet to be specified (#21)
* feat: allow dotnet to be specified

* docs: update readme

* fix: optimize test workflow
2023-03-14 19:04:27 -05:00

53 lines
1.3 KiB
YAML

name: 'build-test'
on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- main
- 'releases/*'
jobs:
tests:
name: 🧪 Test on ${{ matrix.os }}, .NET=${{ matrix.use-dotnet }}
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.
os: [ubuntu-latest, macos-latest, windows-latest]
use-dotnet: [false, true]
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true
defaults:
run:
# Use bash shells on all platforms.
shell: bash
steps:
- uses: actions/checkout@v3
name: 🧾 Checkout
- uses: actions/setup-dotnet@v3
if: ${{ matrix.use-dotnet }}
name: 💽 Setup .NET SDK
with:
dotnet-version: '6.0.x'
- uses: ./
name: 🤖 Setup Godot
with:
# Version must include major, minor, and patch, and be >= 4.0.0
# Pre-release label is optional.
version: 4.0.0
use-dotnet: ${{ matrix.use-dotnet }}
- name: 🔬 Verify Dotnet
if: ${{ matrix.use-dotnet }}
run: |
dotnet --version
- name: 🔬 Verify Godot
run: |
godot --version