-
Notifications
You must be signed in to change notification settings - Fork 3
31 lines (31 loc) · 1.11 KB
/
test-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
name: test-integration
on: [pull_request, push]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@master
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Init environment
run: cd ci/docker && ./init.sh
- name: Run CI tests
run: |
cd ci/docker && docker-compose exec -T php-fpm.stepup.example.com bash -c '
composer check
'
env:
SYMFONY_ENV: test
- name: Output log files on failure
if: failure()
run: tail -2000 /var/log/syslog