|
82 | 82 | token: ${{secrets.CODECOV_TOKEN}}
|
83 | 83 | file: ./tests/_output/coverage-*.xml
|
84 | 84 |
|
85 |
| - run-tests-php8: |
86 |
| - name: PHP ${{ matrix.php-versions }} |
87 |
| - runs-on: ubuntu-latest |
88 |
| - env: |
89 |
| - extensions: mbstring, intl, json, phalcon-5.0.0, mysql, pgsql, xdebug |
90 |
| - key: cache-v2.0~19.03.2020 |
91 |
| - services: |
92 |
| - mysql: |
93 |
| - image: mysql:5.7 |
94 |
| - env: |
95 |
| - MYSQL_DATABASE: phalcon-migrations |
96 |
| - MYSQL_ROOT_PASSWORD: root |
97 |
| - ports: |
98 |
| - - 3306/tcp |
99 |
| - options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 |
100 |
| - postgres: |
101 |
| - image: postgres:10.8 |
102 |
| - ports: |
103 |
| - - 5432/tcp |
104 |
| - options: --health-cmd pg_isready --health-interval 5s --health-timeout 5s --health-retries 2 |
105 |
| - strategy: |
106 |
| - fail-fast: false |
107 |
| - matrix: |
108 |
| - php-versions: ['8.0'] |
109 |
| - steps: |
110 |
| - - uses: actions/checkout@v1 |
111 |
| - - name: Setup cache environment |
112 |
| - id: cache-env |
113 |
| - uses: shivammathur/cache-extensions@v1 |
114 |
| - with: |
115 |
| - php-version: ${{ matrix.php-versions }} |
116 |
| - extensions: ${{ env.extensions }} |
117 |
| - key: ${{ env.key }} |
118 |
| - |
119 |
| - - name: Cache extensions |
120 |
| - uses: actions/cache@v1 |
121 |
| - with: |
122 |
| - path: ${{ steps.cache-env.outputs.dir }} |
123 |
| - key: ${{ steps.cache-env.outputs.key }} |
124 |
| - restore-keys: ${{ steps.cache-env.outputs.key }} |
125 |
| - |
126 |
| - - name: Setup PHP |
127 |
| - uses: shivammathur/setup-php@v2 |
128 |
| - with: |
129 |
| - php-version: ${{ matrix.php-versions }} |
130 |
| - extensions: ${{ env.extensions }} |
131 |
| - tools: pecl |
132 |
| - |
133 |
| - - name: Get Composer Cache Directory |
134 |
| - id: composer-cache |
135 |
| - run: echo "::set-output name=dir::$(composer config cache-files-dir)" |
136 |
| - |
137 |
| - - name: Cache composer dependencies |
138 |
| - uses: actions/cache@v1 |
139 |
| - with: |
140 |
| - path: ${{ steps.composer-cache.outputs.dir }} |
141 |
| - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} |
142 |
| - restore-keys: ${{ runner.os }}-composer- |
143 |
| - |
144 |
| - - name: Install Composer dependencies |
145 |
| - run: composer install --prefer-dist --no-suggest |
146 |
| - |
147 |
| - - name: Copy .env file |
148 |
| - run: cp tests/.env.example tests/.env |
149 |
| - |
150 |
| - - name: Run test suites |
151 |
| - env: |
152 |
| - MYSQL_TEST_DB_PORT: ${{ job.services.mysql.ports['3306'] }} |
153 |
| - POSTGRES_TEST_DB_PORT: ${{ job.services.postgres.ports['5432'] }} |
154 |
| - if: success() |
155 |
| - run: vendor/bin/codecept run --coverage-xml=coverage-${{ matrix.php-versions }}.xml |
156 |
| - |
157 |
| - - name: Upload coverage to Codecov |
158 |
| - if: success() |
159 |
| - uses: codecov/codecov-action@v1 |
160 |
| - with: |
161 |
| - token: ${{secrets.CODECOV_TOKEN}} |
162 |
| - file: ./tests/_output/coverage-*.xml |
0 commit comments