Skip to content

Commit

Permalink
[TASK] Improve ci workflow (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkott authored Mar 5, 2020
1 parent 530b522 commit 36416bd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 23 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ insert_final_newline = true
trim_trailing_whitespace = true
indent_size = 4

[.github/**/*.yml]
indent_style = space
indent_size = 2

# ReST-Files
[*.rst]
indent_style = space
Expand Down
43 changes: 20 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,32 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
typo3: [^9.5, ^10.0, dev-master]
php: ['7.2', '7.3']
typo3: [^9.5, ^10.3, dev-master]
php: ['7.2', '7.3', '7.4']

steps:
- uses: actions/checkout@v1

- name: Set up PHP Version
run: |
sudo update-alternatives --set php /usr/bin/php${{ matrix.php }}
php -v
- name: Checkout
uses: actions/checkout@v2

- name: Update Composer
run: |
sudo composer self-update
composer --version
- name: Set up PHP Version ${{ matrix.php }}
run: |
sudo update-alternatives --set php /usr/bin/php${{ matrix.php }}
php -v
- name: Validate composer.json and composer.lock
run: composer validate
- name: Validate composer.json and composer.lock
run: composer validate

- name: Install dependencies
run: |
composer require typo3/cms-core:${{ matrix.typo3 }} --no-progress
git checkout composer.json
- name: Install dependencies with typo3/cms-core:${{ matrix.typo3 }}
run: |
composer require typo3/cms-core:${{ matrix.typo3 }} --no-progress
git checkout composer.json
- name: CGL
run: composer t3g:cgl
- name: CGL
run: composer t3g:cgl

- name: Lint PHP
run: composer t3g:test:php:lint
- name: Lint PHP
run: composer t3g:test:php:lint

- name: Unit Tests
run: composer t3g:test:php:unit
- name: Unit Tests
run: composer t3g:test:php:unit

0 comments on commit 36416bd

Please sign in to comment.