From 10ff1ea60464183e5606d94f69ce706ee99bb1ae Mon Sep 17 00:00:00 2001 From: Andre Smith <1388874+smithandre@users.noreply.github.com> Date: Tue, 24 May 2022 14:54:10 +0200 Subject: [PATCH 01/13] Create ci.yml --- .github/workflows/ci.yml | 51 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..73f56ba4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,51 @@ +name: BeSimple Unit Tests + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + php: ['7.1', '7.2'] + + steps: + - uses: actions/checkout@v3 + + - uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + coverage: xdebug + + - name: Get composer cache directory + id: composercache + run: echo "::set-output name=dir::$(composer config cache-files-dir)" + + - name: Validate composer.json and composer.lock + run: composer validate --strict + + - name: Cache Composer packages + id: composer-cache + uses: actions/cache@v3 + with: + path: vendor + key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} + restore-keys: | + ${{ runner.os }}-php- + + - name: Install dependencies + run: composer update --prefer-dist --no-progress --ansi --no-interaction + + - name: PHPUnit Tests + uses: php-actions/phpunit@v3 + with: + configuration: phpunit.dist.xml + memory_limit: 256M From 5a9aefe89aec404a219e29464a0a18e54dc8aeb5 Mon Sep 17 00:00:00 2001 From: Andre Smith <1388874+smithandre@users.noreply.github.com> Date: Tue, 24 May 2022 15:02:23 +0200 Subject: [PATCH 02/13] Update ci.yml --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 73f56ba4..8e02f858 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,5 +47,7 @@ jobs: - name: PHPUnit Tests uses: php-actions/phpunit@v3 with: + bootstrap: vendor/autoload.php configuration: phpunit.dist.xml memory_limit: 256M + args: --coverage-text From 976f699315ed098f8379d9b3879df41d55b36c66 Mon Sep 17 00:00:00 2001 From: Andre Smith <1388874+smithandre@users.noreply.github.com> Date: Tue, 24 May 2022 15:12:51 +0200 Subject: [PATCH 03/13] Update ci.yml --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8e02f858..1140f875 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,6 +44,9 @@ jobs: - name: Install dependencies run: composer update --prefer-dist --no-progress --ansi --no-interaction + - name: Run Pre-test scripts + run: ./${GITHUB_WORKSPACE}/src/BeSimple/SoapClient/Tests/bin/axis.sh + - name: PHPUnit Tests uses: php-actions/phpunit@v3 with: From 3cbaa4a1a68cf71d2bcfd5e39ff7e8a6d1d89f4d Mon Sep 17 00:00:00 2001 From: Andre Smith <1388874+smithandre@users.noreply.github.com> Date: Tue, 24 May 2022 15:18:57 +0200 Subject: [PATCH 04/13] Update ci.yml --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1140f875..c6772059 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,6 +23,7 @@ jobs: - uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} + extensions: mcrypt coverage: xdebug - name: Get composer cache directory From df11f88852099207b536f2cdf0756f0854e3a2c4 Mon Sep 17 00:00:00 2001 From: Andre Smith <1388874+smithandre@users.noreply.github.com> Date: Tue, 24 May 2022 15:20:52 +0200 Subject: [PATCH 05/13] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c6772059..d1535a2f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,7 +46,7 @@ jobs: run: composer update --prefer-dist --no-progress --ansi --no-interaction - name: Run Pre-test scripts - run: ./${GITHUB_WORKSPACE}/src/BeSimple/SoapClient/Tests/bin/axis.sh + run: .${GITHUB_WORKSPACE}/src/BeSimple/SoapClient/Tests/bin/axis.sh - name: PHPUnit Tests uses: php-actions/phpunit@v3 From 61139aedbd682284ea9761128379e470b9a14d0e Mon Sep 17 00:00:00 2001 From: Andre Smith <1388874+smithandre@users.noreply.github.com> Date: Tue, 24 May 2022 15:29:26 +0200 Subject: [PATCH 06/13] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d1535a2f..062e10b7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,7 +46,7 @@ jobs: run: composer update --prefer-dist --no-progress --ansi --no-interaction - name: Run Pre-test scripts - run: .${GITHUB_WORKSPACE}/src/BeSimple/SoapClient/Tests/bin/axis.sh + run: echo pwd - name: PHPUnit Tests uses: php-actions/phpunit@v3 From d7f26775f658ede7c6faf88963e7ff34dbf7911c Mon Sep 17 00:00:00 2001 From: Andre Smith <1388874+smithandre@users.noreply.github.com> Date: Tue, 24 May 2022 15:53:19 +0200 Subject: [PATCH 07/13] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 062e10b7..30641f5b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,7 +46,7 @@ jobs: run: composer update --prefer-dist --no-progress --ansi --no-interaction - name: Run Pre-test scripts - run: echo pwd + run: pwd - name: PHPUnit Tests uses: php-actions/phpunit@v3 From 81f461a2bece454154433378ffb2a3af441e5abd Mon Sep 17 00:00:00 2001 From: Andre Smith <1388874+smithandre@users.noreply.github.com> Date: Tue, 24 May 2022 16:00:30 +0200 Subject: [PATCH 08/13] Update ci.yml --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 30641f5b..1da45d9e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,9 +45,13 @@ jobs: - name: Install dependencies run: composer update --prefer-dist --no-progress --ansi --no-interaction - - name: Run Pre-test scripts + - name: get Working dir run: pwd + - name: get Github Runner Dir + run: echo ${GITHUB_WORKSPACE} + shell: bash + - name: PHPUnit Tests uses: php-actions/phpunit@v3 with: From 7f215cb84e551c8ca258f1b9b9ba33c41a76133c Mon Sep 17 00:00:00 2001 From: Andre Smith <1388874+smithandre@users.noreply.github.com> Date: Tue, 24 May 2022 16:02:48 +0200 Subject: [PATCH 09/13] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1da45d9e..8c11f2e4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,7 +49,7 @@ jobs: run: pwd - name: get Github Runner Dir - run: echo ${GITHUB_WORKSPACE} + run: ls -la ${GITHUB_WORKSPACE} shell: bash - name: PHPUnit Tests From fa63b9fe411aff119f9dee86cac88942289747b5 Mon Sep 17 00:00:00 2001 From: Andre Smith <1388874+smithandre@users.noreply.github.com> Date: Tue, 24 May 2022 16:11:31 +0200 Subject: [PATCH 10/13] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c11f2e4..f36ddec1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,7 +49,7 @@ jobs: run: pwd - name: get Github Runner Dir - run: ls -la ${GITHUB_WORKSPACE} + run: "${GITHUB_WORKSPACE}/src/BeSimple/SoapClient/Tests/bin/axis.sh" shell: bash - name: PHPUnit Tests From 0231b6d7d27cd0688bf9b29f3fc5978c5ca40e5a Mon Sep 17 00:00:00 2001 From: Andre Smith <1388874+smithandre@users.noreply.github.com> Date: Tue, 24 May 2022 16:35:10 +0200 Subject: [PATCH 11/13] Update ci.yml --- .github/workflows/ci.yml | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f36ddec1..47782497 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php: ['7.1', '7.2'] + php: ['7.2'] steps: - uses: actions/checkout@v3 @@ -25,13 +25,6 @@ jobs: php-version: ${{ matrix.php }} extensions: mcrypt coverage: xdebug - - - name: Get composer cache directory - id: composercache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" - - - name: Validate composer.json and composer.lock - run: composer validate --strict - name: Cache Composer packages id: composer-cache @@ -43,19 +36,19 @@ jobs: ${{ runner.os }}-php- - name: Install dependencies - run: composer update --prefer-dist --no-progress --ansi --no-interaction - - - name: get Working dir - run: pwd + run: composer update --ansi --no-interaction --no-scripts --no-progress --prefer-dist - - name: get Github Runner Dir + - name: Start WebServer run: "${GITHUB_WORKSPACE}/src/BeSimple/SoapClient/Tests/bin/axis.sh" shell: bash - name: PHPUnit Tests uses: php-actions/phpunit@v3 + env: + TEST_NAME: Scarlett with: bootstrap: vendor/autoload.php - configuration: phpunit.dist.xml + configuration: phpunit.xml.dist memory_limit: 256M args: --coverage-text + php-version: ${{ matrix.php }} From 5e38079c1c960e83f54defb5798c6f5f31d2fe00 Mon Sep 17 00:00:00 2001 From: Andre Smith <1388874+smithandre@users.noreply.github.com> Date: Tue, 24 May 2022 16:37:32 +0200 Subject: [PATCH 12/13] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 47782497..4df76246 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,4 +51,4 @@ jobs: configuration: phpunit.xml.dist memory_limit: 256M args: --coverage-text - php-version: ${{ matrix.php }} + php_version: ${{ matrix.php }} From 9c368e9c3837a4c72677c92ee330e462a0a00bd4 Mon Sep 17 00:00:00 2001 From: Andre Smith <1388874+smithandre@users.noreply.github.com> Date: Tue, 24 May 2022 16:48:17 +0200 Subject: [PATCH 13/13] Update ci.yml --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4df76246..e7530bda 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ permissions: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 strategy: matrix: php: ['7.2'] @@ -43,7 +43,7 @@ jobs: shell: bash - name: PHPUnit Tests - uses: php-actions/phpunit@v3 + uses: php-actions/phpunit@v2 env: TEST_NAME: Scarlett with: