Skip to content

update workflows

update workflows #2

Workflow file for this run

name: Build And Test
on:
push:
branches:
- "*"
env:
CONFIGURATION: Release
DOTNET_CORE_VERSION: 7.0.x
WORKING_DIRECTORY: devblog
CLIENT_APP_DIRECTORY: devblog/devblog/ClientApp
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_CORE_VERSION }}
- name: Restore
run: dotnet restore "${{ env.WORKING_DIRECTORY }}"
- name: Dotnet Build
run: dotnet build "${{ env.WORKING_DIRECTORY }}" --configuration ${{ env.CONFIGURATION }} --no-restore
- name: NPM run build "${{ env.CLIENT_APP_DIRECTORY }}"
run: npm run build
- name: Test
run: dotnet test "${{ env.WORKING_DIRECTORY }}" --no-build