-
Notifications
You must be signed in to change notification settings - Fork 9
69 lines (58 loc) · 1.55 KB
/
dotnet-test.yml
File metadata and controls
69 lines (58 loc) · 1.55 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: .NET Host Tests
on:
push:
branches:
- '**'
paths:
- 'hosts/dotnet/**'
- 'engine/**'
- '.github/workflows/dotnet-test.yml'
pull_request:
branches:
- '**'
paths:
- 'hosts/dotnet/**'
- 'engine/**'
- '.github/workflows/dotnet-test.yml'
workflow_call:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install WASI SDK
uses: konsumer/install-wasi-sdk@v1
with:
version: "27"
- name: Setup Binaryen
uses: ./.github/actions/setup-binaryen
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Setup WABT
uses: ./.github/actions/setup-wabt
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
10.0.x
9.0.x
dotnet-quality: 'preview'
- name: Build engine
working-directory: hosts/dotnet/scripts
run: ./build-engine.sh
- name: Restore solution
working-directory: hosts/dotnet
run: dotnet restore
- name: Test Hako.Analyzers.Tests
working-directory: hosts/dotnet/Hako.Analyzers.Tests
run: dotnet test
- name: Test Hako.SourceGenerator.Tests
working-directory: hosts/dotnet/Hako.SourceGenerator.Tests
run: dotnet test
- name: Test Hako.Tests
working-directory: hosts/dotnet/Hako.Tests
run: dotnet test