mirror of
https://github.com/jbcr/core.git
synced 2026-03-29 12:22:15 +02:00
Update behavioural_tests.yaml
This commit is contained in:
committed by
Bob den Otter
parent
d9c774bf32
commit
0020b1663f
64
.github/workflows/behavioural_tests.yaml
vendored
64
.github/workflows/behavioural_tests.yaml
vendored
@@ -1,31 +1,31 @@
|
||||
__nodes:
|
||||
prepare_environment: &prepare_environment
|
||||
name: Prepare environment
|
||||
run: |
|
||||
# build assets
|
||||
sudo chmod -R 777 config/ public/files/ public/theme/ public/thumbs/ var/
|
||||
# prepare web server for e2e tests
|
||||
./bin/console doctrine:database:create
|
||||
./bin/console doctrine:schema:create
|
||||
./bin/console doctrine:fixtures:load --group=without-images -n
|
||||
./bin/console server:start 127.0.0.1:8088
|
||||
# test if web server works
|
||||
sleep 3
|
||||
wget "http://127.0.0.1:8088/bolt/login"
|
||||
install_dependencies: &install_dependencies
|
||||
name: Install dependencies
|
||||
run: |
|
||||
sudo composer self-update -q
|
||||
sudo COMPOSER_MEMORY_LIMIT=-1 COMPOSER_PROCESS_TIMEOUT=60 composer update --prefer-dist --no-progress
|
||||
./bin/console bolt:info
|
||||
npm set progress=false
|
||||
npm ci
|
||||
mkdir -p ./var/log/e2e-reports/report/features/
|
||||
touch ./var/log/e2e-reports/report/features/.gitkeep
|
||||
# Install latest stable Chrome for e2e tests
|
||||
sudo apt-get install libxss1 libappindicator1 libindicator7
|
||||
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
||||
sudo apt install ./google-chrome*.deb
|
||||
#__nodes:
|
||||
# prepare_environment: &prepare_environment
|
||||
# name: Prepare environment
|
||||
# run: |
|
||||
# # build assets
|
||||
# sudo chmod -R 777 config/ public/files/ public/theme/ public/thumbs/ var/
|
||||
# # prepare web server for e2e tests
|
||||
# ./bin/console doctrine:database:create
|
||||
# ./bin/console doctrine:schema:create
|
||||
# ./bin/console doctrine:fixtures:load --group=without-images -n
|
||||
# ./bin/console server:start 127.0.0.1:8088
|
||||
# # test if web server works
|
||||
# sleep 3
|
||||
# wget "http://127.0.0.1:8088/bolt/login"
|
||||
# install_dependencies: &install_dependencies
|
||||
# name: Install dependencies
|
||||
# run: |
|
||||
# sudo composer self-update -q
|
||||
# sudo COMPOSER_MEMORY_LIMIT=-1 COMPOSER_PROCESS_TIMEOUT=60 composer update --prefer-dist --no-progress
|
||||
# ./bin/console bolt:info
|
||||
# npm set progress=false
|
||||
# npm ci
|
||||
# mkdir -p ./var/log/e2e-reports/report/features/
|
||||
# touch ./var/log/e2e-reports/report/features/.gitkeep
|
||||
# # Install latest stable Chrome for e2e tests
|
||||
# sudo apt-get install libxss1 libappindicator1 libindicator7
|
||||
# wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
||||
# sudo apt install ./google-chrome*.deb
|
||||
|
||||
name: API & Behavioural Tests (Behat)
|
||||
|
||||
@@ -43,8 +43,8 @@ jobs:
|
||||
node-version: ['12.5']
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- <<: *install_dependencies
|
||||
- <<: *prepare_environment
|
||||
# - <<: *install_dependencies
|
||||
# - <<: *prepare_environment
|
||||
- name: run API tests
|
||||
run: make behat-api-quiet
|
||||
e2e:
|
||||
@@ -61,8 +61,8 @@ jobs:
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- <<: *install_dependencies
|
||||
- <<: *prepare_environment
|
||||
# - <<: *install_dependencies
|
||||
# - <<: *prepare_environment
|
||||
- name: Install latest Google Chrome (for e2e tests)
|
||||
run: wget -q https://script.install.devinsideyou.com/google-chrome && chmod +x google-chrome
|
||||
|
||||
|
||||
Reference in New Issue
Block a user