-
Notifications
You must be signed in to change notification settings - Fork 29
38 lines (31 loc) · 1.03 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
name: Test
on:
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
env:
BUILD_CONFIG: release
WORKING_DIR: src/libp2p
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: true
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7
- name: Install dependencies
working-directory: ${{ env.WORKING_DIR }}
run: dotnet restore
- name: Build
working-directory: ${{ env.WORKING_DIR }}
run: dotnet build -c ${{ env.BUILD_CONFIG }} --no-restore -p:ContinuousIntegrationBuild=true -p:Commit=${{ github.sha }}
- name: Test
working-directory: ${{ env.WORKING_DIR }}
run: |
dotnet test Libp2p.Core.Tests -c ${{ env.BUILD_CONFIG }} --no-restore
#dotnet test Libp2p.Protocols.Multistream.Tests -c ${{ env.BUILD_CONFIG }} --no-restore
dotnet test Libp2p.Protocols.Noise.Tests -c ${{ env.BUILD_CONFIG }} --no-restore