We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd9d611 commit 4386e15Copy full SHA for 4386e15
.github/workflows/build-and-test.yml
@@ -104,20 +104,16 @@ jobs:
104
105
- name: PR tests
106
run: |
107
- FOO_SRC_DIR=${{ github.workspace }}
108
- FOO_BUILD_DIR=/opt/foo/build
+ WORKSPACE=${{ github.workspace }}
109
if [[ "${{ matrix.runner.image }}" != "" ]]; then
110
- FOO_SRC_DIR=/workspace
+ WORKSPACE=/workspace
111
fi
112
CMD='
113
- cd '${FOO_SRC_DIR};' \
+ cd '${WORKSPACE}'; \
114
ls -l;
115
chmod +x ./build.sh; \
116
\
117
- FOO_BUILD_DIR='${FOO_BUILD_DIR}' \
118
- FOO_COVERAGE_ENABLED=ON \
119
- FOO_RUN_TESTS=ON \
120
- ./build.sh;'
+ export $(cat .env | egrep -v "(^#.*|^$)" | xargs) && ./build.sh'
121
122
echo "Running ${CMD}"
123
0 commit comments