Skip to content

Github Actions Test #187

Github Actions Test

Github Actions Test #187

Workflow file for this run

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