Update translation #196
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
phpunit: | |
name: Tests PHP ${{ matrix.php }} | |
runs-on: ubuntu-latest | |
container: | |
image: klinktechnology/k-box-ci-pipeline-php:${{ matrix.php }} | |
options: --user root | |
services: | |
mariadb: | |
image: mariadb:10.8.2 | |
env: | |
MYSQL_DATABASE: testing | |
MYSQL_USER: forge | |
MYSQL_PASSWORD: forge | |
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: yes | |
MYSQL_ALLOW_EMPTY_PASSWORD: yes | |
MYSQL_INITDB_SKIP_TZINFO: 1 | |
ports: | |
- 3306 | |
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | |
strategy: | |
fail-fast: true | |
matrix: | |
php: [8.2] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 1 | |
- name: Cache dependencies | |
uses: actions/cache@v1 | |
with: | |
path: ~/.composer/cache/files | |
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} | |
- name: Cache JS dependencies | |
uses: actions/cache@v1 | |
with: | |
path: ~/.yarn/ | |
key: dependencies-js-${{ matrix.php }}-yarn-${{ hashFiles('yarn.lock') }} | |
- name: Prepare environment | |
run: | | |
rm -f /usr/local/etc/php/conf.d/docker-php-ext-pcov.ini | |
composer install --prefer-dist | |
yarn config set cache-folder ~/.yarn/ | |
yarn | |
yarn build | |
- name: Run Testsuite | |
env: | |
DB_HOST: mariadb | |
DB_PASSWORD: forge | |
run: | | |
echo "APP_KEY=" > .env | |
php artisan key:generate | |
php artisan view:clear | |
php artisan config:clear | |
php artisan route:clear | |
vendor/bin/phpunit |