Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Fix #168: Cannot define index on relation #35 (#171) #291

Fix #168: Cannot define index on relation #35 (#171)

Fix #168: Cannot define index on relation #35 (#171) #291

Workflow file for this run

name: yii2-openapi
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
paths-ignore:
- 'docs/**'
- '*.md'
jobs:
test:
if: "!contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, 'ci skip')"
name: yii2-openapi (PHP ${{ matrix.php-versions }})
runs-on: ubuntu-latest
env:
DB_USERNAME: dbuser
DB_PASSWORD: dbpass
DB_CHARSET: utf8
strategy:
fail-fast: false
matrix:
php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
# TODO use cache
steps:
- uses: actions/checkout@v3
- name: Set PHP Version
run: echo "PHP_VERSION=${{ matrix.php-versions }}" > .env
# Run every tests inside Docker container
- name: Docker Compose Setup
uses: ndeloof/install-compose-action@v0.0.1
with:
# version: v3.5 # defaults to 'latest'
legacy: true # will also install in PATH as `docker-compose`
- name: Clean
run: make clean_all
- name: docker-compose up
run: make up
- name: Install Docker and composer dependencies
run: docker-compose exec php php -v && make installdocker
- name: Migrate
run: make UID=0 migrate
- name: Check style
if: "!contains(matrix.php-versions, '8.')"
run: make check-style-from-host
- name: Run tests
run: make UID=0 testdocker