-
-
Notifications
You must be signed in to change notification settings - Fork 480
55 lines (42 loc) · 1.35 KB
/
continuous-integration.yml
File metadata and controls
55 lines (42 loc) · 1.35 KB
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
50
51
52
53
54
55
name: "Continuous Integration"
on:
- push
- pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
APP_ENV: test
DATABASE_URL: "mysql://root:root@127.0.0.1:3306/packagist?serverVersion=8.0"
permissions:
contents: read
jobs:
tests:
name: "CI"
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
with:
coverage: "none"
extensions: "intl, zip, apcu"
php-version: "8.4"
tools: composer
ini-values: apc.enable_cli=1
- name: "Start MySQL"
run: sudo systemctl start mysql.service
- uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
with:
composer-options: "--ansi --no-interaction --no-progress --prefer-dist"
- name: Start Redis
uses: supercharge/redis-github-action@bc274cb7238cd63a45029db04ee48c07a72609fd # 1.8.1
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"