PHP Classes

File: .github/workflows/test.yml

Recommend this page to a friend!
  Classes of Insolita  >  Russian PHP Metaphone  >  .github/workflows/test.yml  >  Download  
File: .github/workflows/test.yml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Russian PHP Metaphone
Generate a phonetic representation of Russian word
Author: By
Last change:
Date: 1 year ago
Size: 1,635 bytes
 

Contents

Class file image Download
name: metaphone
on:
    push:
        branches: [ main, dev ]
    pull_request:
        branches: [ main ]
        paths-ignore:
            - 'docs/**'
            - '*.md'

jobs:
    test:
        if: "!contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, 'ci skip')"
        name: metaphone (PHP ${{ matrix.php-versions }})
        runs-on: ubuntu-latest
        strategy:
            fail-fast: true
            matrix:
                php-versions: ['7.1', '7.2', '7.3', '7.4']

        steps:
            - uses: actions/checkout@v2

            - name: Setup PHP, with composer and extensions
              uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
              with:
                  php-version: ${{ matrix.php-versions }}
                  tools: composer:v2

            - name: Get composer cache directory
              id: composercache
              run: echo "::set-output name=dir::$(composer config cache-files-dir)"

            - name: Cache Composer packages
              id: composer-cache
              uses: actions/cache@v2
              with:
                  path: ${{ steps.composercache.outputs.dir }}
                  key: ${{ runner.os }}-php-${{ matrix.php-versions }}-${{ hashFiles('**/composer.json') }}
                  restore-keys: |
                      ${{ runner.os }}-php-${{ matrix.php-versions }}

            - name: Install deps
              run: composer install --prefer-dist --no-progress --no-suggest --optimize-autoloader

            - name: Unit tests
              run: php vendor/bin/phpunit
For more information send a message to info at phpclasses dot org.