Skip to content

Commit 4386e15

Browse files
committed
#1: fix command in ci
1 parent cd9d611 commit 4386e15

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/build-and-test.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,20 +104,16 @@ jobs:
104104
105105
- name: PR tests
106106
run: |
107-
FOO_SRC_DIR=${{ github.workspace }}
108-
FOO_BUILD_DIR=/opt/foo/build
107+
WORKSPACE=${{ github.workspace }}
109108
if [[ "${{ matrix.runner.image }}" != "" ]]; then
110-
FOO_SRC_DIR=/workspace
109+
WORKSPACE=/workspace
111110
fi
112111
CMD='
113-
cd '${FOO_SRC_DIR};' \
112+
cd '${WORKSPACE}'; \
114113
ls -l;
115114
chmod +x ./build.sh; \
116115
\
117-
FOO_BUILD_DIR='${FOO_BUILD_DIR}' \
118-
FOO_COVERAGE_ENABLED=ON \
119-
FOO_RUN_TESTS=ON \
120-
./build.sh;'
116+
export $(cat .env | egrep -v "(^#.*|^$)" | xargs) && ./build.sh'
121117
122118
echo "Running ${CMD}"
123119

0 commit comments

Comments
 (0)