-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (45 loc) · 1.37 KB
/
deploy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# This workflow will install Composer dependencies,
# run tests and code quality checks with a variety of PHP versions.
name: Test and QA
on:
push:
workflow_dispatch:
jobs:
tests:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
php-version: ["7.0", "7.4", "8.3"]
steps:
- uses: actions/checkout@v4
- name: Set up PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer
- name: Install dependencies
run: |
# Install specific PHP version dependencies
composer update
- name: Quality Assurance
# only in the minimum supported version
if: matrix.php-version == '7.0'
run: |
composer cs
composer csfixer-ci
- name: Tests
env:
SQLITE_CONNECTION_STRING: ${{ vars.SQLITE_CONNECTION_STRING }}
SQLITE_USER: ${{ secrets.SQLITE_USER }}
SQLITE_PASSWORD: ${{ secrets.SQLITE_PASSWORD }}
SQLITE_API_KEY: ${{ secrets.SQLITE_API_KEY }}
SQLITE_HOST: ${{ vars.SQLITE_HOST }}
SQLITE_DB: ${{ vars.SQLITE_DB }}
SQLITE_PORT: ${{ vars.SQLITE_PORT }}
run: |
composer test-suite-codecov
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}