Skip to content

Initial implementation #10

Initial implementation

Initial implementation #10

Workflow file for this run

name: build
on:
push:
branches:
- "main"
paths:
- ".github/workflows/build.yml"
- "src/**"
- "test/**"
- "util/**"
pull_request:
branches:
- "main"
paths:
- ".github/workflows/build.yml"
- "src/**"
- "test/**"
- "util/**"
jobs:
test:
runs-on: ubuntu-latest
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
cache: true
cache-dependency-path: '**/packages.linux-x64.lock.json'
dotnet-version: '8.x'
- name: Build
run: dotnet build -p TreatWarningsAsErrors=true
- name: Check for BOMs
run: ./dev/check-bom.sh
- name: Check formatting
run: |
if dotnet format --no-restore --verify-no-changes; then
echo "formatting passed"
else
rc="$?"
echo "formatting failed; run 'dotnet format'" >&2
exit "$rc"
fi
- name: Unit Tests
run: dotnet test --no-build test/UnitTests/UnitTests.csproj
- name: Integration Tests
run: dotnet test --no-build test/IntegrationTests/IntegrationTests.csproj