CI #3294
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
name: CI | |
on: | |
push: | |
branches: | |
- master | |
- release-* | |
pull_request: | |
workflow_dispatch: | |
env: | |
DOTNET_NOLOGO: true | |
jobs: | |
build: | |
name: Windows | |
runs-on: windows-2022 | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET SDK | |
uses: actions/[email protected] | |
with: | |
dotnet-version: 7.0.x | |
- name: Set up Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: 21.6.x | |
- name: Build Frontend | |
run: .\build.ps1 | |
working-directory: src/ServicePulse.Host | |
- name: Run component tests | |
run: npm run test:component | |
working-directory: src/Frontend | |
- name: Run application tests | |
run: npm run test:application | |
working-directory: src/Frontend | |
# .NET Build and run tests | |
- name: Build | |
run: dotnet build src --configuration Release | |
- name: Run .NET tests | |
uses: Particular/[email protected] | |
# Upload assets and packages | |
- name: Upload assets | |
uses: actions/[email protected] | |
with: | |
name: Assets | |
path: src/ServicePulse.Host/bin/Release/ | |
retention-days: 7 | |
- name: Upload packages | |
uses: actions/[email protected] | |
with: | |
name: NuGet packages | |
path: nugets/ | |
retention-days: 7 |