Skip to content

Commit b72823a

Browse files
committed
Make sure codecov reports are merged
The codecov.yml has to be moved according to latest update in codecov-action: https://github.com/codecov/codecov-action#arguments It also does some clean up and add flags to group the reports. Signed-off-by: Daniel Jiang <jiangd@vmware.com>
1 parent dd55cdc commit b72823a

File tree

2 files changed

+3
-31
lines changed

2 files changed

+3
-31
lines changed

.github/workflows/CI.yml

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ jobs:
7373
env
7474
bash ./tests/showtime.sh ./tests/ci/ut_install.sh
7575
- name: script
76-
env:
77-
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7876
run: |
7977
echo IP: $IP
8078
cd src/github.com/goharbor/harbor
@@ -83,7 +81,7 @@ jobs:
8381
uses: codecov/codecov-action@v1
8482
with:
8583
file: ./src/github.com/goharbor/harbor/profile.cov
86-
yml: ./src/github.com/goharbor/harbor/.github/codecov-ut-config/codecov.yml
84+
flags: unittests
8785

8886
APITEST_DB:
8987
env:
@@ -275,39 +273,13 @@ jobs:
275273
- uses: actions/checkout@v2
276274
with:
277275
path: src/github.com/goharbor/harbor
278-
- name: setup env
279-
run: |
280-
cd src/github.com/goharbor/harbor
281-
pwd
282-
go env
283-
echo "::set-env name=GOPATH::$(go env GOPATH):$GITHUB_WORKSPACE"
284-
echo "::add-path::$(go env GOPATH)/bin"
285-
echo "::set-env name=TOKEN_PRIVATE_KEY_PATH::${GITHUB_WORKSPACE}/src/github.com/goharbor/harbor/tests/private_key.pem"
286-
shell: bash
287-
- name: before_install
288-
run: |
289-
set -x
290-
cd src/github.com/goharbor/harbor
291-
pwd
292-
env
293-
#sudo apt install -y xvfb
294-
#xvfb-run ls
295-
#curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
296-
#chmod +x docker-compose
297-
#sudo mv docker-compose /usr/local/bin
298-
IP=`hostname -I | awk '{print $1}'`
299-
#echo '{"insecure-registries" : ["'$IP':5000"]}' | sudo tee /etc/docker/daemon.json
300-
echo "::set-env name=IP::$IP"
301-
sudo cp ./tests/harbor_ca.crt /usr/local/share/ca-certificates/
302-
sudo update-ca-certificates
303-
#sudo service docker restart
304276
- name: script
305277
run: |
306278
echo IP: $IP
307279
cd src/github.com/goharbor/harbor
308280
bash ./tests/showtime.sh ./tests/ci/ui_ut_run.sh
309281
- name: Codecov For UI
310-
uses: codecov/codecov-action@v1.0.5
282+
uses: codecov/codecov-action@v1
311283
with:
312284
file: ./src/github.com/goharbor/harbor/src/portal/coverage/lcov.info
313-
yml: ./src/github.com/goharbor/harbor/.github/codecov-ut-config/codecov.yml
285+
flags: unittests

0 commit comments

Comments
 (0)