File: .github/workflows/php_ci.yml

Recommend this page to a friend!
  Classes of Faris AL-Otaibi  >  PHP Sanitization Functions  >  .github/workflows/php_ci.yml  >  Download  
File: .github/workflows/php_ci.yml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Sanitization Functions
Verify and clean values to assure they are valid
Author: By
Last change: github-actions(deps): bump actions/cache from v2 to v2.1.4

Bumps [actions/cache](https://github.com/actions/cache) from v2 to v2.1.4.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2...26968a09c0ea4f3e233fdddbafd1166051a095f6)

Signed-off-by: dependabot[bot] <support@github.com>
Date: 2 months ago
Size: 1,005 bytes
 

 

Contents

Class file image Download
name: "Workflow"

on: ["push", "pull_request"]

jobs:
  build:
    runs-on: "ubuntu-latest"

    steps:
      - name: "Checkout"
        uses: "actions/checkout@v2"

      - name: "Validate composer.json and composer.lock"
        run: "composer validate"

      - name: "Cache Composer packages"
        id: "composer-cache"
        uses: "actions/cache@v2.1.4"
        with:
          path: "vendor"
          key: "${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}"
          restore-keys: |
            "${{ runner.os }}-php-"

      - name: "Install dependencies"
        if: "steps.composer-cache.outputs.cache-hit != 'true'"
        run: "composer install --prefer-dist --no-progress --no-suggest"

  test:
    runs-on: "ubuntu-latest"

    steps:
      - uses: "actions/checkout@v2"
      - uses: "php-actions/composer@v5"

      - name: "PHPUnit tests"
        uses: "php-actions/phpunit@v9"
        with:
          bootstrap: "vendor/autoload.php"
          configuration: "phpunit.xml"

For more information send a message to info at phpclasses dot org.