-
Notifications
You must be signed in to change notification settings - Fork 133
70 lines (58 loc) · 1.54 KB
/
test.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: "[CI] Test"
on:
push:
branches:
- main
- live
pull_request:
env:
GOTEO_CONFIG_FILE: config/github-settings.yml
jobs:
test-report:
runs-on: "ubuntu-22.04"
strategy:
fail-fast: false
matrix:
php-versions: [ '7.4' ]
services:
mysql:
image: mariadb:10.2
ports:
- 3306:3306
env:
MYSQL_DATABASE: goteo
MYSQL_HOST: 127.0.0.1
MYSQL_USER: goteo
MYSQL_PASSWORD: goteo
MYSQL_ROOT_PASSWORD: goteo
MYSQL_AUTHENTICATION_PLUGIN: mysql_native_password
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=3
steps:
- name: Install compile gems
run: |
sudo gem install sass -v 3.4.23
sudo gem install compass
- uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Install NPM packages
run: |
sudo npm install grunt -g --prefix=/usr/local
npm install
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl, xml
- name: Run Composer Install
run: composer install --no-interaction
- name: Run migrations
run: bin/console migrate install
- name: Grunt compile assets
run: grunt build:dist
- name: Run tests
run: ./run-tests.sh -t config/github-settings.yml tests/