Skip to content

Merge branch 'master' into model.core.structure #97

Merge branch 'master' into model.core.structure

Merge branch 'master' into model.core.structure #97

name: Build and test
permissions:
contents: read # access to check out code and install dependencies
# Determines when this workflow is triggered.
on:
push:
pull_request:
branches: [ master ]
jobs:
build-and-test:
# Run all subsequent steps on the specified operating systems.
if: github.repository_owner == 'APSIMInitiative'
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
# 'macos-13' can be used but some tests involving doubles will require tolerance comparisons see:
# https://docs.nunit.org/articles/nunit/writing-tests/constraints/EqualConstraint.html#comparing-floating-point-values
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
- name: Build
run: dotnet build --configuration Release
- name: Test
run: dotnet test