-
Notifications
You must be signed in to change notification settings - Fork 58
55 lines (49 loc) · 1.26 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
name: Test
on:
pull_request: {}
jobs:
dotnet:
name: dotnet
strategy:
fail-fast: false
matrix:
config:
- branch: main
runs-on: ubuntu-latest
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
NUGET_XMLDOC_MODE: skip
steps:
- name: Install nats-server
run: |
for i in 1 2 3
do
curl -sf https://binaries.nats.dev/nats-io/nats-server/v2@${{ matrix.config.branch }} | PREFIX=. sh && break || sleep 30
done
sudo mv nats-server /usr/local/bin
- name: Check nats-server
run: nats-server -v
- name: Checkout
uses: actions/checkout@v3
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.x'
dotnet-quality: 'preview'
- name: Test Native AOT
run: |
echo "Testing Native AOT"
pwd
echo "List files"
ls -l
echo "CD"
cd ./tests
echo "List files"
ls -l
echo "CD"
cd './NATS.Client.NativeAotTests'
dotnet publish -r linux-x64 -c Release -o dist
cd ./dist
ls -lh
./NATS.Client.NativeAotTests