mirror of
https://github.com/goharbor/harbor.git
synced 2024-09-27 13:02:59 +02:00
[Cherry-pick]Update CI for UI UT (#18167)
Update CI for UI UT 1.Specify Chrome version for UI UT Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
parent
b09a690e98
commit
7cdf8f696c
8
.github/workflows/CI.yml
vendored
8
.github/workflows/CI.yml
vendored
@ -324,18 +324,24 @@ jobs:
|
||||
|
||||
UI_UT:
|
||||
env:
|
||||
UI_UT: true
|
||||
CHROME_BIN: /opt/hostedtoolcache/chromium/848897/x64/chrome
|
||||
runs-on:
|
||||
#- self-hosted
|
||||
- ubuntu-latest
|
||||
timeout-minutes: 100
|
||||
steps:
|
||||
- name: uninstall chrome
|
||||
run: |
|
||||
sudo apt --purge remove google-chrome-stable
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '16'
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
path: src/github.com/goharbor/harbor
|
||||
- uses: browser-actions/setup-chrome@v1
|
||||
with:
|
||||
chrome-version: 848897
|
||||
- name: script
|
||||
run: |
|
||||
echo IP: $IP
|
||||
|
@ -10,10 +10,12 @@ go get -d github.com/docker/libtrust
|
||||
go get golang.org/x/lint/golint
|
||||
go get github.com/GeertJohan/fgt
|
||||
go get github.com/dghubble/sling
|
||||
set +e
|
||||
go get github.com/stretchr/testify
|
||||
go get golang.org/x/tools/cmd/cover
|
||||
go get github.com/mattn/goveralls
|
||||
go get -u github.com/client9/misspell/cmd/misspell
|
||||
set -e
|
||||
sudo service postgresql stop || echo no postgresql need to be stopped
|
||||
sleep 2
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user