Skip to content

This package allows us to reuse GitHub actions, which simplifies version management.

License

Notifications You must be signed in to change notification settings

spiral/gh-actions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spiral Framework

Spiral Framework GitHub Actions


General usage

This package allows us to reuse GitHub actions, which simplifies version management.

Example of use of the action PHPUnit

on:
  push:
    branches:
      - master
      - '*.*'
  pull_request: null
  
name: phpunit

jobs:
  phpunit:
    uses: spiral/gh-actions/.github/workflows/phpunit.yml@master
    with:
      # coverage: pcov / coverage: xdebug / coverage: xdebug2 / coverage: none 
      # extensions: pdo, pdo_pgsql
      os: >-
        ['ubuntu-latest']
      php: >-
        ['8.1']
      #tools: composer:v2 

Example of use of the action PSALM

on:
  push:
    branches:
      - master
      - '*.*'
  pull_request: null

name: static analysis

jobs:
  psalm:
    uses: spiral/gh-actions/.github/workflows/psalm.yml@master
    with:
      os: >-
        ['ubuntu-latest']
      php: >-
        ['8.1']

Example of use of the action Coding standarts

on:
  push:
    branches:
      - master
      - '*.*'
  pull_request: null

name: coding standards

jobs:
  coding-standards:
    uses: spiral/gh-actions/.github/workflows/cs.yml@master
    with:
      os: >-
        ['ubuntu-latest']
      php: >-
        ['8.1']

License:

MIT License (MIT). Please see LICENSE for more information. Maintained by Spiral Scout.

About

This package allows us to reuse GitHub actions, which simplifies version management.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks