-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (40 loc) · 1.34 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
name: Pull Request Code test
on:
push:
branches:
- 'feature/*'
pull_request_target:
types: [ assigned, opened, synchronize, reopened ]
paths-ignore:
- 'docs/**'
- '**/*.md'
jobs:
checks:
name: run
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Download metalbond using the script
run: ./hack/rel_download.sh -dir=build -owner=onmetal -repo=metalbond -pat=${{ secrets.GITHUB_TOKEN }}
- name: Install metalbond
run: sudo dpkg -i build/metalbond*.deb
- name: Start metalbond
run: metalbond server --listen [::1]:4711 --http [::1]:4712 --keepalive 3 &
- name: Run dp-service
run: docker run --privileged --mount type=bind,source=/dev/hugepages,target=/dev/hugepages ghcr.io/test/dp-service-tester:latest &
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
- run: |
mkdir -p ~/.ssh
for key in rsa ecdsa ed25519; do
ssh-keyscan -t $key github.com 2>/dev/null >> ~/.ssh/known_hosts
done
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.BOT_PRIVATE_KEY }}
- run: ./hack/setup-git-redirect.sh
- run: make test