-
Notifications
You must be signed in to change notification settings - Fork 16
44 lines (40 loc) · 1.51 KB
/
build-and-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
name: Build and test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
complete:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup k3s
uses: debianmaster/actions-k3s@master
with:
version: 'v1.23.17-k3s1'
- name: Setup nginx-ingress
run: |
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.5.1/deploy/static/provider/cloud/deploy.yaml
kubectl wait --namespace ingress-nginx --for=condition=ready pod --selector=app.kubernetes.io/component=controller --timeout=120s
- name: Setup .NET SDK 8
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.x'
- name: Install dependencies
run: dotnet restore
- name: Install tool dependencies
run: dotnet tool restore
- name: Check formatting
run: dotnet tool run fantomas --check --recurse src
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal
- name: Run BootAndSync mission
run: dotnet run --project src/App/App.fsproj --configuration Release -- mission BootAndSync --image stellar/stellar-core:stable --kubeconfig $KUBECONFIG --namespace default --ingress-class nginx --ingress-internal-domain local --ingress-external-host localhost --uneven-sched
- uses: actions/upload-artifact@v4
with:
name: destination
path: destination/
retention-days: 30