[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:
Shijun Sun 2023-02-03 19:06:04 +08:00 committed by GitHub
parent b09a690e98
commit 7cdf8f696c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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