-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (32 loc) · 1007 Bytes
/
Build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Build And Test
on:
push:
branches:
- "*"
env:
CONFIGURATION: Release
DOTNET_CORE_VERSION: 7.0.x
WORKING_DIRECTORY: devblog
CLIENT_APP_DIRECTORY: 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: Test
# run: dotnet test "${{ env.WORKING_DIRECTORY }}" --no-build
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- name: npm run build
run: npm --prefix "${{ env.CLIENT_APP_DIRECTORY }}" run build