-
Notifications
You must be signed in to change notification settings - Fork 5
/
action.yml
41 lines (39 loc) · 1.13 KB
/
action.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
name: 'Run Ziggurat test suite'
inputs:
node-name:
type: string
required: true
commit-hash:
type: string
required: true
runs:
using: "composite"
steps:
- uses: actions/download-artifact@v3
with:
name: ziggurat-executable
path: ./ziggurat
- name: Cleanup temp files and prepare test binary
shell: bash
run: |
rm ./ziggurat/*.d
mv ./ziggurat/ziggurat_* ziggurat_test
chmod +x ziggurat_test
- name: Procure metadata
shell: bash
env:
NODE_NAME: ${{ inputs.node-name }}
COMMIT_HASH: ${{ inputs.commit-hash }}
run: |
echo "{ \"type\": \"node\", \"name\": \""$NODE_NAME"\" }" > latest.jsonl
echo "{ \"type\": \"node\", \"commit\": \""$COMMIT_HASH"\" }" >> latest.jsonl
- name: Run ziggurat suite
shell: bash
continue-on-error: true
run: ./ziggurat_test --test-threads=1 --nocapture -Z unstable-options --report-time --format json >> latest.jsonl
- run: cat latest.jsonl
shell: bash
- uses: actions/upload-artifact@v3
with:
name: latest-result
path: latest.jsonl