File tree Expand file tree Collapse file tree 4 files changed +4
-8
lines changed Expand file tree Collapse file tree 4 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 9
9
branches :
10
10
- master
11
11
env :
12
+ CYPRESS_COVERAGE : " true"
12
13
NODE_VERSION : 18
13
14
YARN_VERSION : 1.22.22
14
15
REDASH_COOKIE_SECRET : " 2H9gNG9obnAQ9qnR9BDTQUph6CbXKCzF"
75
76
docker cp tests:/app/junit.xml /tmp/test-results/unit-tests/results.xml
76
77
- name : Upload coverage reports to Codecov
77
78
uses : codecov/codecov-action@v4
79
+ with :
80
+ token : ${{ secrets.CODECOV_TOKEN }}
78
81
- name : Store Test Results
79
82
uses : actions/upload-artifact@v4
80
83
with :
@@ -165,10 +168,6 @@ jobs:
165
168
with :
166
169
node-version : ${{ env.NODE_VERSION }}
167
170
cache : ' yarn'
168
- - name : Enable Code Coverage Report For Master Branch
169
- if : endsWith(github.ref, '/master')
170
- run : |
171
- echo "CODE_COVERAGE=true" >> "$GITHUB_ENV"
172
171
- name : Install Dependencies
173
172
run : |
174
173
npm install --global --force yarn@$YARN_VERSION
Original file line number Diff line number Diff line change @@ -24,9 +24,6 @@ COPY --chown=redash package.json yarn.lock .yarnrc /frontend/
24
24
COPY --chown=redash viz-lib /frontend/viz-lib
25
25
COPY --chown=redash scripts /frontend/scripts
26
26
27
- # Controls whether to instrument code for coverage information
28
- ARG CODE_COVERAGE
29
- ENV BABEL_ENV=${CODE_COVERAGE:+test}
30
27
RUN yarn --frozen-lockfile --network-concurrency 1;
31
28
COPY --chown=redash client /frontend/client
32
29
COPY --chown=redash webpack.config.js /frontend/
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ services:
5
5
args :
6
6
FRONTEND_BUILD_MODE : ${FRONTEND_BUILD_MODE:-2}
7
7
INSTALL_GROUPS : ${INSTALL_GROUPS:-main,all_ds,dev}
8
- CODE_COVERAGE : ${CODE_COVERAGE:-"false"}
9
8
volumes :
10
9
- $PWD:${SERVER_MOUNT:-/app}
11
10
command : manage version
Original file line number Diff line number Diff line change @@ -78,3 +78,4 @@ services:
78
78
COMMIT_INFO_REMOTE : ${COMMIT_INFO_REMOTE:-""}
79
79
CYPRESS_PROJECT_ID : ${CYPRESS_PROJECT_ID:-""}
80
80
CYPRESS_RECORD_KEY : ${CYPRESS_RECORD_KEY:-""}
81
+ CYPRESS_COVERAGE : ${CYPRESS_COVERAGE:-""}
You can’t perform that action at this time.
0 commit comments