generated from seclerp/dotnet-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (29 loc) · 946 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:
paths-ignore:
- 'cookiecutter.json' # Do not run .NET CI after editing cookiecutter.json (project setup in progress)
pull_request:
paths-ignore:
- 'cookiecutter.json' # Do not run .NET CI after editing cookiecutter.json (project setup in progress)
defaults:
run:
working-directory: src
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 📝 Fetch Sources
uses: actions/checkout@v3
- name: 🛠 Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: 🏗 Restore dependencies
run: dotnet restore
- name: 🏗 Build
run: dotnet build --no-restore
- name: 📝 Test ChromeProtocol.Runtime
run: dotnet test --no-build --verbosity normal ChromeProtocol.Runtime.Tests
- name: 📝 Test ChromeProtocol.Tools
run: dotnet test --no-build --verbosity normal ChromeProtocol.Tools.Tests