-
-
Notifications
You must be signed in to change notification settings - Fork 476
49 lines (38 loc) · 1.08 KB
/
continuous-integration.yml
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
name: "Continuous Integration"
on:
- push
- pull_request
env:
APP_ENV: test
DATABASE_URL: "mysql://root:[email protected]:3306/packagist?serverVersion=8.0"
jobs:
tests:
name: "CI"
runs-on: ubuntu-20.04
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
extensions: "intl, zip, apcu"
php-version: "8.1"
tools: composer
ini-values: apc.enable_cli=1
- name: "Start MySQL"
run: sudo systemctl start mysql.service
- name: "Install dependencies"
uses: "ramsey/composer-install@v2"
with:
composer-options: "--ansi --no-interaction --no-progress --prefer-dist"
- name: Start Redis
uses: supercharge/[email protected]
with:
redis-version: 6
- name: "Setup DB"
run: |
bin/console doctrine:database:create -n
bin/console doctrine:schema:create -n
- name: "Run tests"
run: "composer test"