From 450765e6b5ebcf572e1b89687a62ab5aa6563048 Mon Sep 17 00:00:00 2001 From: Sergei Mikhailov Date: Fri, 15 Jul 2022 15:04:34 +0200 Subject: [PATCH 1/3] ci: add a CI action --- .github/workflows/continuous-integration.yaml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) 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 00000000..c230671d --- /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.2', '7.3', '7.4', '8.0', '8.1' ] + include: + - php-version: '7.2' + coverage: true + + steps: + - name: CI + uses: oat-sa/tao-extension-ci-action@v1 + with: + php: ${{ matrix.php-version }} + coverage: ${{ matrix.coverage }} From b694e4da7c32cbcb453880472c261632347bb5a9 Mon Sep 17 00:00:00 2001 From: Sergei Mikhailov Date: Fri, 15 Jul 2022 15:05:00 +0200 Subject: [PATCH 2/3] docs: add a codecov badge to README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 20750acf..8e04ac18 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ extension-tao-test ================== +[![codecov](https://codecov.io/gh/oat-sa/extension-tao-test/branch/master/graph/badge.svg)](https://codecov.io/gh/oat-sa/extension-tao-test) + extension to manage tests for TAO From 1c4cb01b214940bff543c5d31575757398d554f2 Mon Sep 17 00:00:00 2001 From: Sergei Mikhailov Date: Mon, 18 Jul 2022 20:44:38 +0200 Subject: [PATCH 3/3] chore: exclude PHP 7.2 and 7.4 from the CI pipeline --- .github/workflows/continuous-integration.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous-integration.yaml b/.github/workflows/continuous-integration.yaml index c230671d..5e602bc4 100644 --- a/.github/workflows/continuous-integration.yaml +++ b/.github/workflows/continuous-integration.yaml @@ -14,9 +14,9 @@ jobs: fail-fast: false matrix: operating-system: [ ubuntu-latest ] - php-version: [ '7.2', '7.3', '7.4', '8.0', '8.1' ] + php-version: [ '7.4', '8.0', '8.1' ] include: - - php-version: '7.2' + - php-version: '7.4' coverage: true steps: