Skip to content
This repository was archived by the owner on Dec 14, 2024. It is now read-only.

Commit 1a28786

Browse files
Merge pull request #90 from alexislefebvre/fix-github-workflow
Fix GitHub workflow
2 parents 9bbbdff + cd2a495 commit 1a28786

File tree

2 files changed

+46
-24
lines changed

2 files changed

+46
-24
lines changed

.github/workflows/blank.yml

-24
This file was deleted.

.github/workflows/tests.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
tests:
7+
name: Symfony (PHP ${{ matrix.php-versions }})
8+
runs-on: ubuntu-latest
9+
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
php-versions: ['7.2', '7.3']
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
19+
- name: Setup PHP, with composer and extensions
20+
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
21+
with:
22+
php-version: ${{ matrix.php-versions }}
23+
extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite
24+
25+
- name: Validate composer.json and composer.lock
26+
run: composer validate
27+
28+
- name: Get composer cache directory
29+
id: composercache
30+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
31+
32+
- name: Cache composer dependencies
33+
uses: actions/cache@v2
34+
with:
35+
path: ${{ steps.composercache.outputs.dir }}
36+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
37+
restore-keys: ${{ runner.os }}-composer-
38+
39+
- name: Install Composer dependencies
40+
run: composer install --no-progress --prefer-dist --optimize-autoloader --no-progress --no-suggest
41+
42+
- name: Run a multi-line script
43+
run: |
44+
php ./vendor/bin/phpspec run --format=pretty
45+
php ./vendor/bin/phpunit $PHPUNIT_FLAGS
46+
php ./vendor/bin/behat --colors --strict --format=progress -vv

0 commit comments

Comments
 (0)