forked from gravitational/teleport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
43 lines (36 loc) · 1.07 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
42
43
name: Run difftest
description: Runs difftest
inputs:
flags:
description: difftest flags
required: true
target:
description: make target
required: true
attempts:
description: Number of runs
required: false
default: 100
bin:
description: difftest binary location
required: false
default: ${GITHUB_WORKSPACE}/build.assets/tooling/bin/difftest
path:
description: difftest path
required: false
default: ${GITHUB_WORKSPACE}
runs:
using: "composite"
steps:
- name: Build
shell: bash
run: make ${{ inputs.bin }}
- name: Show
id: diffs
shell: bash
run: |
${{ inputs.bin }} diff --path ${{ inputs.path }} --branch remotes/origin/${GITHUB_BASE_REF} ${{ inputs.flags }}
echo "subject=$(${{ inputs.bin }} test --path ${{ inputs.path }} --branch remotes/origin/${GITHUB_BASE_REF} ${{ inputs.flags }} -d)" > $GITHUB_OUTPUT
- name: Run
shell: bash
run: SUBJECT='${{ steps.diffs.outputs.subject }}' ADDFLAGS='-count ${{ inputs.attempts }}' make ${{ inputs.target }}