-
Notifications
You must be signed in to change notification settings - Fork 9
52 lines (46 loc) · 1.37 KB
/
memory.yaml
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
name: Memory tests
on:
push:
branches: [main, memory_tests]
workflow_dispatch:
jobs:
# The following secrets are required:
# STORAGE_ACCOUNT_NAME : name of the storage account with uploaded testdata (without blob.core.windows.net)
# STORAGE_ACCOUNT_KEY : key used to access storage
memory_tests:
name: Run memory tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Load openvds image
uses: "./.github/actions/load_openvds_image"
with:
build_type: Debug
- name: Run memory tests
env:
STORAGE_ACCOUNT_NAME: ${{ secrets.STORAGE_ACCOUNT_NAME }}
STORAGE_ACCOUNT_KEY: ${{ secrets.STORAGE_ACCOUNT_KEY }}
LOGPATH: "/out"
run: |
tag=memory_tests
DOCKER_BUILDKIT=1 docker build \
-f tests/memory/Dockerfile \
--build-arg OPENVDS_IMAGE=${{ env.OPENVDS_IMAGE_TAG }} \
--tag $tag \
.
docker run \
-e STORAGE_ACCOUNT_NAME \
-e STORAGE_ACCOUNT_KEY \
-e LOGPATH \
-v $(pwd)/out:/out \
$tag
- name: Print stderr
if: always()
continue-on-error: true
run: |
cat out/stderr.txt
- name: Print stdout
if: always()
continue-on-error: true
run: |
cat out/stdout.txt