-
-
Notifications
You must be signed in to change notification settings - Fork 36
53 lines (43 loc) · 1.22 KB
/
build-validation.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Build Validation
on:
push:
branches: [ main ]
paths-ignore:
- '**.md'
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- main # only run on main branch
workflow_dispatch:
inputs:
reason:
description: 'The reason for running the workflow'
required: true
default: 'Manual "Build" run'
env:
TEST_USERNAME: ${{ secrets.TEST_USERNAME }}
TEST_PASSWORD: ${{ secrets.TEST_PASSWORD }}
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: 'Print manual run reason'
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
echo 'Reason: ${{ github.event.inputs.reason }}'
- name: Setup .NET 6.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Install dependencies
run: dotnet restore
- name: Build
run: |
dotnet build --configuration Release --no-restore
- name: 'Install Playwright dependencies'
run: pwsh tests/Web.Client.EndToEndTests/bin/Release/net6.0/playwright.ps1 install --with-deps
- name: Test
run: |
dotnet test --no-restore --verbosity normal