spiral / gh-actions

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

Home Page:https://spiral.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

https://spiral.dev/

License:MIT License