mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 10:05:41 +00:00
feat: install selenium drivers
This commit is contained in:
3
.github/workflows/linux.yml
vendored
3
.github/workflows/linux.yml
vendored
@@ -104,6 +104,9 @@ jobs:
|
|||||||
profile: minimal
|
profile: minimal
|
||||||
override: true
|
override: true
|
||||||
|
|
||||||
|
- name: install nightwatch dep
|
||||||
|
run: sudo apt-get install xvfb
|
||||||
|
|
||||||
- name: Run migrations
|
- name: Run migrations
|
||||||
run: make migrate
|
run: make migrate
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -7,13 +7,33 @@ readonly PROJECT_ROOT=$(realpath $(dirname $(dirname "${BASH_SOURCE[0]}")))
|
|||||||
|
|
||||||
source $PROJECT_ROOT/scripts/lib.sh
|
source $PROJECT_ROOT/scripts/lib.sh
|
||||||
|
|
||||||
|
is_ci(){
|
||||||
|
if [ -z ${CI+x} ];
|
||||||
|
then
|
||||||
|
return 1
|
||||||
|
else
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
docker-compose down -v --remove-orphans || true
|
docker-compose down -v --remove-orphans || true
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
cd $(mktemp -d)
|
cd $(mktemp -d)
|
||||||
|
pwd
|
||||||
|
find
|
||||||
git clone https://github.com/mCaptcha/integration .
|
git clone https://github.com/mCaptcha/integration .
|
||||||
yarn install
|
|
||||||
npx nightwatch ./test/mCaptcha.ts
|
if is_ci
|
||||||
|
then
|
||||||
|
yarn install
|
||||||
|
xvfb-run --auto-servernum npm run test.chrome
|
||||||
|
xvfb-run --auto-servernum npm run test.firefox
|
||||||
|
else
|
||||||
|
yarn install
|
||||||
|
npx nightwatch ./test/mCaptcha.ts
|
||||||
|
fi
|
||||||
|
|
||||||
cd $PROJECT_ROOT
|
cd $PROJECT_ROOT
|
||||||
docker-compose down -v --remove-orphans || true
|
docker-compose down -v --remove-orphans || true
|
||||||
|
|||||||
Reference in New Issue
Block a user