Skip to content

yii-tools/actions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published