-
Notifications
You must be signed in to change notification settings - Fork 8
63 lines (51 loc) · 1.24 KB
/
test.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
54
55
56
57
58
59
60
61
62
63
# Authors:
#
# Sam Gold <https://github.com/goldsam>
# Sebastian Stehle <https://github.com/SebastianStehle>
# Lucas Viana <https://github.com/LSViana>
name: Test
on:
push:
branches:
- 'main'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
# Windows
- build: win-x64
os: windows-latest
# Linux
- build: linux-x64
os: ubuntu-latest
- build: linux-x64-musl
os: ubuntu-latest
# macOS
- build: macos-x86_64
os: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download artifacts
uses: dawidd6/action-download-artifact@v2
with:
path: ./output
workflow: build-binaries.yml
workflow_conclusion: success
name: ${{ matrix.build }}
name_is_regexp: true
- name: Copy binaries
run: |
cp output/${{ matrix.build }}/*.* YDotNet
- name: Build tests
run: |
cd Tests/YDotNet.Tests.Unit
dotnet build
- name: Run tests
run: |
dotnet test
env:
RUST_BACKTRACE: 1