Skip to content
Open
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
33 changes: 25 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,28 @@ name: build

jobs:
codeception:
uses: php-forge/actions/.github/workflows/codeception.yml@main
secrets:
AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}
with:
os: >-
['ubuntu-latest']
php: >-
['8.1', '8.2', '8.3']
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install dependencies
run: composer install

- name: Download and configure Selenium and Chrome
run: |
wget -c -nc --retry-connrefused --tries=0 https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.14.0/selenium-server-4.14.1.jar -O selenium-server-standalone.jar
java -jar selenium-server-standalone.jar standalone --port 9515 > /dev/null 2>&1&
sleep 1
wget https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/118.0.5993.88/linux64/chromedriver-linux64.zip
sudo apt-get install unzip
unzip -o -q chromedriver-linux64.zip
cd chromedriver-linux64
chromedriver --port=9515 --url-base=wd/hub/ > /dev/null 2>&1&
cd ..
google-chrome --product-version

- name: Run Codeception
run: |
php -S 127.0.0.1:8080 -t public > /dev/null 2>&1&
vendor/bin/codecept run
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"codeception/lib-innerbrowser": "^4.0",
"codeception/module-asserts": "^3.0",
"codeception/module-filesystem": "^3.0",
"codeception/module-webdriver": "^4.0",
"codeception/module-yii2": "^1.1",
"codeception/verify": "^3.0",
"maglnet/composer-require-checker": "^4.6",
Expand Down Expand Up @@ -70,7 +71,6 @@
"codeception/c3": true,
"yiisoft/yii2-composer": true,
"composer/installers": true,
"hiqdev/composer-config-plugin": true,
"oomphinc/composer-installers-extender": true,
"yiisoft/config": true
}
Expand Down
220 changes: 148 additions & 72 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
if (getenv('YII_ENV')) {
defined('YII_ENV') or define('YII_ENV', getenv('YII_ENV'));
} else {
defined('YII_ENV') or define('YII_ENV', 'dev');
defined('YII_ENV') or define('YII_ENV', 'prod');
}

if (getenv('YII_C3')) {
Expand Down
Loading