Bump elliptic from 6.5.4 to 6.6.0 #314
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: Run tests | |
on: [push, pull_request] | |
jobs: | |
run-tests: | |
name: Run tests | |
runs-on: ubuntu-latest | |
services: | |
mysql: | |
image: mysql:8.0 | |
env: | |
MYSQL_ROOT_PASSWORD: password | |
MYSQL_PASSWORD: password | |
MYSQL_DATABASE: daybyday_test | |
ports: | |
- 3306:3306 | |
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.2' | |
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick | |
- name: Create daybyday testing database | |
env: | |
PORT: ${{ job.services.mysql.ports[3306] }} | |
run: mysql -h 127.0.0.1 --port "$PORT" -u root -ppassword -e 'CREATE DATABASE IF NOT EXISTS daybyday_test;' | |
- name: Install dependencies | |
run: | | |
yarn install | |
yarn run dev | |
- name: Cache Composer dependencies | |
uses: actions/cache@v3 | |
with: | |
path: vendor | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- name: Run Composer install | |
run: composer install --no-ansi --no-scripts --no-interaction --optimize-autoloader --prefer-dist | |
- name: Prepare Laravel application | |
run: | | |
cp .env.ci .env | |
php artisan key:generate | |
- name: Database setup | |
run: php artisan migrate --seed | |
- name: Run tests | |
run: ./vendor/bin/phpunit |