Skip to content

Commit 462c071

Browse files
authored
Merge pull request #4 from compas-dev/pre-build
added call to pre-build before running tests
2 parents e501794 + 19b3aaf commit 462c071

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

action.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ inputs:
4545
description: "Whether to checkout submodules, value can be 'true', 'recursive', or 'false'"
4646
required: false
4747
default: "true"
48+
run_prebuild:
49+
description: "Whether to run the pre-build task after installation and before running any tests. Value can be 'true', or 'false'"
50+
required: false
51+
default: "false"
4852

4953
runs:
5054
using: "composite"
@@ -67,6 +71,11 @@ runs:
6771
python -m pip install --upgrade pip
6872
pip install -e ".[dev]"
6973
74+
if [[ ${{ inputs.run_prebuild }} = "true" ]]; then
75+
echo Running pre-build task
76+
invoke pre-build
77+
fi;
78+
7079
if [[ ${{ inputs.invoke_lint }} == "true" ]]; then
7180
invoke lint
7281
fi;
@@ -127,6 +136,11 @@ runs:
127136
exit 1
128137
fi
129138
139+
if [[ ${{ inputs.run_prebuild }} = "true" ]]; then
140+
echo Running pre-build task
141+
invoke pre-build
142+
fi;
143+
130144
if [[ ${{ inputs.invoke_lint }} = "true" ]]; then
131145
invoke lint
132146
fi;

0 commit comments

Comments
 (0)