From b585b9f7f58e59b4265b5e1af41a7c6b5d115ee1 Mon Sep 17 00:00:00 2001 From: Anna Balabushko <10919769+abalabushko@users.noreply.github.com> Date: Sun, 24 Dec 2023 11:02:20 +0100 Subject: [PATCH] Update ContinuousIntegration.md fix gihub actions yaml formatting Fix for github actions section yaml file formatting issues. --- docs/ContinuousIntegration.md | 59 +++++++++++++++++------------------ 1 file changed, 28 insertions(+), 31 deletions(-) diff --git a/docs/ContinuousIntegration.md b/docs/ContinuousIntegration.md index a7c781502..35a0a972d 100644 --- a/docs/ContinuousIntegration.md +++ b/docs/ContinuousIntegration.md @@ -89,39 +89,36 @@ Jenkins should locate `report.html` at `tests/_output/`. Now Jenkins will displa GitHub Actions CI can be used to launch tests. Install PHP and Composer and execute tests: ```yaml -on: - pull_request: - branches-ignore: gh-pages - push: - branches-ignore: gh-pages - name: Codeception Tests - +on: + pull_request: + branches-ignore: gh-pages + push: + branches-ignore: gh-pages + jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Install PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - extensions: curl, mbstring, openssl, pdo, pdo_sqlite - ini-values: memory_limit=-1, date.timezone='UTC' - coverage: xdebug - tools: composer:v2 - - - name: Validate composer.json and composer.lock - run: composer validate - - - name: Install dependencies - run: composer install --prefer-dist --no-progress --no-interaction --no-suggest - - - name: Run tests - run: php vendor/bin/codecept run + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Install PHP + uses: shivammathur/setup-php@v2 + with: + php-version: $ + extensions: curl, mbstring, openssl, pdo, pdo_sqlite + ini-values: memory_limit=-1, date.timezone='UTC' + coverage: xdebug + tools: composer:v2 + + - name: Validate composer.json and composer.lock + run: composer validate + + - name: Install dependencies + run: composer install --prefer-dist --no-progress --no-interaction --no-suggest + + - name: Run tests + run: php vendor/bin/codecept run ``` ## GitLab CI