|
73 | 73 | env |
74 | 74 | bash ./tests/showtime.sh ./tests/ci/ut_install.sh |
75 | 75 | - name: script |
76 | | - env: |
77 | | - COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
78 | 76 | run: | |
79 | 77 | echo IP: $IP |
80 | 78 | cd src/github.com/goharbor/harbor |
|
83 | 81 | uses: codecov/codecov-action@v1 |
84 | 82 | with: |
85 | 83 | file: ./src/github.com/goharbor/harbor/profile.cov |
86 | | - yml: ./src/github.com/goharbor/harbor/.github/codecov-ut-config/codecov.yml |
| 84 | + flags: unittests |
87 | 85 |
|
88 | 86 | APITEST_DB: |
89 | 87 | env: |
@@ -275,39 +273,13 @@ jobs: |
275 | 273 | - uses: actions/checkout@v2 |
276 | 274 | with: |
277 | 275 | 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 |
304 | 276 | - name: script |
305 | 277 | run: | |
306 | 278 | echo IP: $IP |
307 | 279 | cd src/github.com/goharbor/harbor |
308 | 280 | bash ./tests/showtime.sh ./tests/ci/ui_ut_run.sh |
309 | 281 | - name: Codecov For UI |
310 | | - uses: codecov/codecov-action@v1.0.5 |
| 282 | + uses: codecov/codecov-action@v1 |
311 | 283 | with: |
312 | 284 | 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