Skip to content
This repository was archived by the owner on Aug 22, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
e04c4f3
chore: replace travis with github actions
Chris8934 Feb 14, 2023
5e05ed5
chore: replace travis with github actions
Chris8934 Feb 14, 2023
9d75804
chore: replace travis with github actions
Chris8934 Feb 14, 2023
57bb1ec
chore: replace travis with github actions
Chris8934 Feb 14, 2023
66e4b7c
chore: replace travis with github actions
Chris8934 Feb 14, 2023
9d52c77
chore: replace travis with github actions
Chris8934 Feb 14, 2023
8adf5c0
chore: replace travis with github actions
Chris8934 Feb 14, 2023
0b47174
chore: replace travis with github actions
Chris8934 Feb 14, 2023
3fe9f08
chore: replace travis with github actions
Chris8934 Feb 14, 2023
612a0f6
chore: replace travis with github actions
Chris8934 Feb 14, 2023
de092cc
chore: replace travis with github actions
Chris8934 Feb 14, 2023
f6f1719
chore: replace travis with github actions
Chris8934 Feb 14, 2023
b8f3905
chore: replace travis with github actions
Chris8934 Feb 14, 2023
877ef18
chore: replace travis with github actions
Chris8934 Feb 14, 2023
bd8553d
chore: replace travis with github actions
Chris8934 Feb 14, 2023
4f45d8f
chore: replace travis with github actions
Chris8934 Feb 14, 2023
14e1e42
chore: replace travis with github actions
Chris8934 Feb 14, 2023
8442415
chore: replace travis with github actions
Chris8934 Feb 14, 2023
6ffa189
chore: replace travis with github actions
Chris8934 Feb 14, 2023
eab045a
chore: replace travis with github actions
Chris8934 Feb 14, 2023
2477f89
chore: replace travis with github actions
Chris8934 Feb 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .coveralls.yml

This file was deleted.

90 changes: 90 additions & 0 deletions .github/workflows/code_checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# .github/workflows/code_checks.yaml
name: Code_Checks

on: ["push", "pull_request"]

jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.0']
stability: [ prefer-stable ]
symfony-version: ['4.4.*', '5.4.*', '6.2.*']
include:
- php: '7.1'
stability: prefer-lowest
- php: '7.2'
symfony-version: 4.4.*
- php: '7.2'
symfony-version: 5.4.*
- php: '7.3'
symfony-version: 5.4.*
- php: '7.4'
symfony-version: 5.4.*
- php: '8.0'
symfony-version: 5.4.*
- php: '8.0'
symfony-version: 6.0.*
- php: '8.1'
symfony-version: 6.1.*
- php: '8.2'
symfony-version: 6.2.*
exclude:
- php: '8.0'
symfony-version: 6.2.*

name: PHP ${{ matrix.php }} - ${{ matrix.symfony-version }} ${{ matrix.stability }} tests
steps:
# basically git clone
- uses: actions/checkout@v3

- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.composer/cache/files
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

# use PHP of specific version
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: pcov, xdebug
coverage: xdebug

- name: Install dependencies
env:
SYMFONY_REQUIRE: ${{ matrix.symfony-version }}
run: |
composer global config --no-plugins allow-plugins.symfony/flex true
composer global require --no-progress --no-scripts --no-plugins symfony/flex
composer update --no-interaction --prefer-dist --optimize-autoloader
vendor/bin/simple-phpunit install

- name: Execute tests
env:
SYMFONY_DEPRECATIONS_HELPER: 'weak'
run: ./vendor/bin/simple-phpunit --verbose --coverage-text


cs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: 7.4
coverage: none
- run: composer install --no-progress
- run: ./vendor/bin/phpcs

finish:
needs: tests
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ vendor
composer.lock
build/logs/*
!build/logs/.gitkeep
.phpunit.result.cache
42 changes: 0 additions & 42 deletions .travis.yml

This file was deleted.

3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
"symfony/phpunit-bridge": "^5.0 | ^6.0",
"symfony/twig-bridge": "^4.4 | ^5.0 | ^6.0",
"flagception/database-activator": "^1.0",
"squizlabs/php_codesniffer": "^3.3.1",
"php-coveralls/php-coveralls": "^2.0"
"squizlabs/php_codesniffer": "^3.3.1"
},
"autoload": {
"psr-4": {
Expand Down