-
-
Notifications
You must be signed in to change notification settings - Fork 16
33 lines (25 loc) · 645 Bytes
/
build.yml
File metadata and controls
33 lines (25 loc) · 645 Bytes
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
name: Build
on:
workflow_dispatch:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: Install workloads
run: dotnet workload install wasm-tools wasm-experimental
- name: Build
run: dotnet build -warnaserror -p:TreatWarningsAsErrors=true
- name: Test
run: dotnet test --no-build