Skip to content

Add github workflow #30

Add github workflow

Add github workflow #30

name: Unit tests
on:
push:
branches:
- 3.x.x-dev
pull_request:
branches:
- 3.x.x-dev
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: ['6.0', '7.0', '8.0', '9.0']
fail-fast: false

Check failure on line 18 in .github/workflows/run-unit-tests.yml

GitHub Actions / Unit tests

Invalid workflow file

The workflow is not valid. .github/workflows/run-unit-tests.yml (Line: 18, Col: 20): Unexpected value 'false'
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup .NET 6 SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0'
- name: Setup .NET 7 SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0'
- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0'
- name: Setup .NET 9 SDKs
uses: actions/setup-dotnet@v3
with:
dotnet-version: '9.0'
- name: Install dependencies
run: dotnet restore
- name: Build the solution
run: dotnet build --configuration Release
- name: Run unit tests
run: dotnet test smsapiTests/smsapiTests.csproj --configuration Release --no-build --verbosity normal --framework net${{ matrix.dotnet-version }}