Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix playwright by installing in CI #982

Merged
merged 2 commits into from
Aug 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions test/api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

set -o pipefail

if [[ -z "$CI" ]]; then
echo "This script is meant to run in CI only" 1>&2
exit 1
fi

cd "$(dirname "$0")/.." || exit

export SHAKEDOWN_URL="http://127.0.0.1:8080"
Expand Down
7 changes: 6 additions & 1 deletion test/ui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

set -euo pipefail

if [[ -z "$CI" ]]; then
echo "This script is meant to run in CI only" 1>&2
exit 1
fi

cd "$(dirname "$0")/.." || exit

FLIPT_PID="/tmp/flipt.ui.pid"
Expand Down Expand Up @@ -31,7 +36,7 @@ run()

./test/helpers/wait-for-it/wait-for-it.sh "$flipt_host" -t 30

cd "ui" && npm ci
cd "ui" && npm ci && npx playwright install chromium --with-deps
npm test && npx playwright test
}

Expand Down