From c56abdfeb419e12723c118614fa6b624ae855bde Mon Sep 17 00:00:00 2001 From: Andrei Shapiro Date: Tue, 4 Oct 2022 23:21:59 +0000 Subject: [PATCH 1/2] chore: add continuous-integration workflow and update composer dependencies --- .github/workflows/continuous-integration.yaml | 27 ++++++++++++++++ composer.json | 31 +++++++++---------- 2 files changed, 42 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/continuous-integration.yaml diff --git a/.github/workflows/continuous-integration.yaml b/.github/workflows/continuous-integration.yaml new file mode 100644 index 0000000..83b9623 --- /dev/null +++ b/.github/workflows/continuous-integration.yaml @@ -0,0 +1,27 @@ +name: Continuous integration + +on: + push: + branches: [ master, develop ] + pull_request: + branches: [ develop ] + +jobs: + ci: + runs-on: ${{ matrix.operating-system }} + + strategy: + fail-fast: false + matrix: + operating-system: [ ubuntu-latest ] + php-version: [ '7.4', '8.0', '8.1' ] + include: + - php-version: '8.1' + coverage: true + + steps: + - name: CI + uses: oat-sa/tao-extension-ci-action@v1 + with: + php: ${{ matrix.php-version }} + coverage: ${{ matrix.coverage }} diff --git a/composer.json b/composer.json index ec184c2..5fed782 100644 --- a/composer.json +++ b/composer.json @@ -1,33 +1,32 @@ { - "name": "oat-sa/extension-tao-blueprints", - "description" : "Extension to manage blue prints", - "type" : "tao-extension", - "authors" : [ + "description": "Extension to manage blue prints", + "type": "tao-extension", + "authors": [ { - "name": "Open Assessment Technologies SA" + "name": "Open Assessment Technologies SA" } ], - "keywords" : [ + "keywords": [ "tao", "computer-based-assessment" ], - "homepage" : "http://www.taotesting.com", - "license" : [ + "homepage": "http://www.taotesting.com", + "license": [ "GPL-2.0" ], - "extra" : { - "tao-extension-name" : "taoBlueprints" + "extra": { + "tao-extension-name": "taoBlueprints" }, - "minimum-stability" : "dev", + "minimum-stability": "dev", "require": { "oat-sa/oatbox-extension-installer": "~1.1||dev-master", - "oat-sa/generis" : ">=14.0.0", - "oat-sa/tao-core" : ">=47.0.0" + "oat-sa/generis": ">=15.22", + "oat-sa/tao-core": ">=50.24.6" }, - "autoload" : { - "psr-4" : { - "oat\\taoBlueprints\\" : "" + "autoload": { + "psr-4": { + "oat\\taoBlueprints\\": "" } } } From 9b71408ea66a6a11834dbe103a92f62b5eec8304 Mon Sep 17 00:00:00 2001 From: Andrei Shapiro Date: Wed, 5 Oct 2022 07:36:01 +0000 Subject: [PATCH 2/2] chore: add test-suites-path for continuous-integration workflow --- .github/workflows/continuous-integration.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/continuous-integration.yaml b/.github/workflows/continuous-integration.yaml index 83b9623..3967449 100644 --- a/.github/workflows/continuous-integration.yaml +++ b/.github/workflows/continuous-integration.yaml @@ -25,3 +25,4 @@ jobs: with: php: ${{ matrix.php-version }} coverage: ${{ matrix.coverage }} + test-suites-path: test