Skip to content

Latest commit

 

History

History
151 lines (123 loc) · 2.99 KB

README.md

File metadata and controls

151 lines (123 loc) · 2.99 KB

Actions


Usage:

To use these reusable github actions, simply create your .yml file, in your .github/workflows directory in your repository, and simply paste the code below:

Codeception tests

file: .github/workflows/codeception.yml

on:
  pull_request:
    paths-ignore:
      - 'docs/**'
      - 'README.md'
      - 'CHANGELOG.md'
      - '.gitignore'
      - '.gitattributes'
      - 'infection.json.dist'
      - 'psalm.xml'

  push:
    paths-ignore:
      - 'docs/**'
      - 'README.md'
      - 'CHANGELOG.md'
      - '.gitignore'
      - '.gitattributes'
      - 'infection.json.dist'
      - 'psalm.xml'

name: build

jobs:
  codeception:
    uses: yii-tools/actions/.github/workflows/build.yml@main
    with:
      extensions: fileinfo, intl
      os: >-
        ['ubuntu-latest']
      php: >-
        ['8.1', '8.2']

Composer require checker for monorepo

file: .github/workflows/dependency-checker.yml

on:
  pull_request:
    paths-ignore:
      - 'docs/**'
      - 'README.md'
      - 'CHANGELOG.md'
      - '.gitignore'
      - '.gitattributes'
      - 'infection.json.dist'
      - 'psalm.xml'

name: dependency-check

jobs:
  composer-require-checker:
    uses: yii-tools/actions/.github/workflows/split-tests.yml@main
    with:
      os: >-
        ['ubuntu-latest']
      packages-name: >-
        ['html', 'model']
      php: >-
        ['8.1', '8.2']
      test-command: composer-require-checker

Phpunit tests for monorepo

file: .github/workflows/phpunit.yml

on:
  pull_request:
    paths-ignore:
      - 'docs/**'
      - 'README.md'
      - 'CHANGELOG.md'
      - '.gitignore'
      - '.gitattributes'
      - 'infection.json.dist'
      - 'psalm.xml'

name: build

jobs:
  phpunit:
    uses: yii-tools/actions/.github/workflows/split-tests.yml@main
    with:
      os: >-
        ['ubuntu-latest', 'windows-latest']
      packages-name: >-
        ['html', 'model']
      php: >-
        ['8.1', '8.2']

Psalm static analysis for monorepo

file: .github/workflows/psalm.yml

on:
  pull_request:
    paths-ignore:
      - 'docs/**'
      - 'README.md'
      - 'CHANGELOG.md'
      - '.gitignore'
      - '.gitattributes'
      - 'infection.json.dist'
      - 'psalm.xml'

name: static-analysis

jobs:
  psalm:
    uses: yii-tools/actions/.github/workflows/split-tests.yml@main
    with:
      os: >-
        ['ubuntu-latest']
      packages-name: >-
        ['html', 'model']
      php: >-
        ['8.1', '8.2']
      test-command: psalm

License

The MIT License (MIT). Please see License File for more information.

Our social networks

Twitter