-
-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (64 loc) · 1.94 KB
/
Copy pathtest.yml
File metadata and controls
78 lines (64 loc) · 1.94 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
70
71
72
73
74
75
76
77
78
name: Run Tests
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
jobs:
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # MinVer needs full tag history for the pack step
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.100'
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Execute xUnit Tests
run: |
dotnet test --configuration Release --no-build --verbosity normal \
--filter "Category!=Integration"
- name: Pack (verify packability)
run: dotnet pack --configuration Release --no-build --output ./nupkgs
integration-tests:
name: Integration Tests (${{ matrix.micropython-version }})
runs-on: ubuntu-latest
needs: unit-tests
strategy:
fail-fast: false
matrix:
micropython-version:
- v1.19.1
- v1.20.0
- v1.21.0
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.100'
- name: Cache MicroPython firmware
uses: actions/cache@v4
with:
path: /tmp/rp2040sharp-firmware-cache
key: micropython-firmware-${{ matrix.micropython-version }}
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Run Integration Tests
run: |
dotnet test tests/RP2040Sharp.IntegrationTests/ \
--configuration Release --no-build --verbosity normal \
--filter "Category=Integration"