Fixed most nullable warnings #46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a .NET project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | |
name: Build & Test | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
account_service: | |
runs-on: ubuntu-latest | |
env: | |
working-directory: Services/AccountService | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
working-directory: ${{env.working-directory}} | |
- name: Build | |
run: dotnet build --no-restore | |
working-directory: ${{env.working-directory}} | |
- name: Test | |
run: dotnet test --no-build --verbosity normal | |
working-directory: ${{env.working-directory}} | |
device_manager_service: | |
runs-on: ubuntu-latest | |
env: | |
working-directory: Services/Netmon.DeviceManager | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7.0.x | |
- name: Restore dependencies | |
run: dotnet restore DeviceManagerService.sln | |
working-directory: ${{env.working-directory}} | |
- name: Build | |
run: dotnet build --no-restore DeviceManagerService.sln | |
working-directory: ${{env.working-directory}} | |
- name: Test | |
run: dotnet test --no-build --verbosity normal DeviceManagerService.sln | |
working-directory: ${{env.working-directory}} | |
snmp_polling_service: | |
runs-on: ubuntu-latest | |
env: | |
working-directory: Services/Netmon.SNMPPolling | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7.0.x | |
- name: Restore dependencies | |
run: dotnet restore SNMPPollingService.sln | |
working-directory: ${{env.working-directory}} | |
- name: Build | |
run: dotnet build --no-restore SNMPPollingService.sln | |
working-directory: ${{env.working-directory}} | |
- name: Test | |
run: dotnet test --no-build --verbosity normal SNMPPollingService.sln | |
working-directory: ${{env.working-directory}} | |
user_web_app: | |
timeout-minutes: 20 | |
runs-on: ubuntu-latest | |
env: | |
working-directory: Services/UserWebApp | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
run: npm ci | |
working-directory: ${{env.working-directory}} | |
- name: Build SvelteKit project | |
run: npm run build | |
working-directory: ${{env.working-directory}} | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
working-directory: ${{env.working-directory}} | |
- name: Run Playwright tests | |
run: npx playwright test | |
working-directory: ${{env.working-directory}} | |
admin_web_app: | |
timeout-minutes: 20 | |
runs-on: ubuntu-latest | |
env: | |
working-directory: Services/AdminWebApp | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
run: npm ci | |
working-directory: ${{env.working-directory}} | |
- name: Build SvelteKit project | |
run: npm run build | |
working-directory: ${{env.working-directory}} | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
working-directory: ${{env.working-directory}} | |
- name: Run Playwright tests | |
run: npx playwright test | |
working-directory: ${{env.working-directory}} |