Skip to content

Commit

Permalink
Merge pull request #147 from greg0ire/ga
Browse files Browse the repository at this point in the history
Switch to Github actions
  • Loading branch information
greg0ire committed May 22, 2023
2 parents 9bb430d + eb526d6 commit 29f0ed4
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 34 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: "Continuous Integration"

on:
pull_request:
branches:
- "legacy-stable"
- "stable"
- "unstable"
push:
branches:
- "legacy-stable"
- "stable"
- "unstable"

env:
fail-fast: true

jobs:
phpunit:
name: "PHPUnit"
runs-on: "ubuntu-22.04"

strategy:
matrix:
php-version:
- "7.2"
- "7.4"
- "8.0"
dependencies:
- "highest"
include:
- php-version: "7.2"
dependencies: "lowest"

steps:
- name: "Checkout"
uses: "actions/checkout@v3"
with:
fetch-depth: 2

- name: "Install PHP with PCOV"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-version }}"
coverage: "pcov"
ini-values: "zend.assertions=1"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"
with:
dependency-versions: "${{ matrix.dependencies }}"
composer-options: "${{ inputs.composer-options }}"

- name: "Run PHPUnit"
run: >
SYMFONY_DEPRECATIONS_HELPER="max[self]=0"
SYMFONY_PHPUNIT_VERSION=8.5.13
vendor/bin/simple-phpunit
34 changes: 0 additions & 34 deletions .travis.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ protected function setUp(): void
$this->setParameter('kernel.debug', true);
$this->setParameter('kernel.root_dir', sys_get_temp_dir());
$this->setParameter('kernel.project_dir', sys_get_temp_dir());
$this->setParameter('kernel.build_dir', sys_get_temp_dir());
$this->setParameter('kernel.bundles_metadata', []);
$this->setParameter('kernel.container_class', Container::class);

Expand Down

0 comments on commit 29f0ed4

Please sign in to comment.