CI #769
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: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
php81: | |
name: PHP 8.1 | |
runs-on: ubuntu-22.04 | |
services: | |
mongo: | |
image: mongo:5.0 | |
env: | |
MONGO_INITDB_ROOT_USERNAME: root | |
MONGO_INITDB_ROOT_PASSWORD: root | |
ports: | |
- 27017:27017 | |
postgres: | |
image: postgres:14 | |
env: | |
POSTGRES_USER: root | |
POSTGRES_PASSWORD: root | |
ports: | |
- 5432:5432 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: wait for databases | |
run: | | |
while ! nc -z localhost 27017; do sleep 0.1; done | |
while ! nc -z localhost 5432; do sleep 0.1; done | |
- name: composer test | |
uses: docker://chubbyphp/ci-php81:latest | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
MONGODB_URI: "mongodb://root:[email protected]:27017" | |
POSTGRES_URL: "pgsql://root:[email protected]:5432?charset=utf8" | |
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} | |
php82: | |
name: PHP 8.2 | |
runs-on: ubuntu-22.04 | |
services: | |
mongo: | |
image: mongo:5.0 | |
env: | |
MONGO_INITDB_ROOT_USERNAME: root | |
MONGO_INITDB_ROOT_PASSWORD: root | |
ports: | |
- 27017:27017 | |
postgres: | |
image: postgres:14 | |
env: | |
POSTGRES_USER: root | |
POSTGRES_PASSWORD: root | |
ports: | |
- 5432:5432 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: wait for databases | |
run: | | |
while ! nc -z localhost 27017; do sleep 0.1; done | |
while ! nc -z localhost 5432; do sleep 0.1; done | |
- name: composer test | |
uses: docker://chubbyphp/ci-php82:latest | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
MONGODB_URI: "mongodb://root:[email protected]:27017" | |
POSTGRES_URL: "pgsql://root:[email protected]:5432?charset=utf8" | |
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} | |
php83: | |
name: PHP 8.3 | |
runs-on: ubuntu-22.04 | |
services: | |
mongo: | |
image: mongo:5.0 | |
env: | |
MONGO_INITDB_ROOT_USERNAME: root | |
MONGO_INITDB_ROOT_PASSWORD: root | |
ports: | |
- 27017:27017 | |
postgres: | |
image: postgres:14 | |
env: | |
POSTGRES_USER: root | |
POSTGRES_PASSWORD: root | |
ports: | |
- 5432:5432 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: wait for databases | |
run: | | |
while ! nc -z localhost 27017; do sleep 0.1; done | |
while ! nc -z localhost 5432; do sleep 0.1; done | |
- name: composer test | |
uses: docker://chubbyphp/ci-php83:latest | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
MONGODB_URI: "mongodb://root:[email protected]:27017" | |
POSTGRES_URL: "pgsql://root:[email protected]:5432?charset=utf8" | |
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }} | |
- name: sonarcloud.io | |
uses: sonarsource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |