-
Notifications
You must be signed in to change notification settings - Fork 10
44 lines (36 loc) · 1018 Bytes
/
buildandtest.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
name: Build and Test
on:
push:
branches: [ "dev" ]
paths-ignore:
- "**.md"
- "**.ps1"
- ".editorconfig"
- "TestFiles/*"
- '**/*.gitignore'
- '**/*.gitattributes'
- '**/*.yml'
pull_request:
branches: [ "dev", "main" ]
jobs:
build:
name: "Build and Test"
# use ubuntu-latest image to run steps on
runs-on: ubuntu-latest
steps:
# uses GitHub's checkout action to checkout code form the release branch
- name: Checkout code
uses: actions/[email protected]
# sets up .NET SDK
- name: Setup .NET
uses: actions/[email protected]
with:
global-json-file: ./global.json
- name: Install WASM workload
run: dotnet workload install wasm-tools
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Run tests
run: dotnet test --configuration Release --no-build