Skip to content

postgresのバージョンを14→9に変更 #10

postgresのバージョンを14→9に変更

postgresのバージョンを14→9に変更 #10

Workflow file for this run

name: PHP Composer
on:
push:
branches: [ '**' ]
pull_request:
branches: [ '**' ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: password
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
postgres:
image: postgres:9
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
ports:
- 5432:5432
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.0
- name: Setup Composer
run: |
composer self-update --1
composer install
- name: Setup EC-CUBE
run: |
php eccube_install.php $DB none #26行目でcomposerインストールしているためスキップ
env:
DB: pgsql
USER: postgres
DBNAME: myapp_test
DBPASS: password
DBUSER: postgres
- name: Php Unit Test
run: |
vendor/bin/phpunit