PHP Classes

File: .github/workflows/build.yaml

Recommend this page to a friend!
  Classes of Yousaf Syed  >  Crow PHP Web Framework  >  .github/workflows/build.yaml  >  Download  
File: .github/workflows/build.yaml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Crow PHP Web Framework
Microservice framework for PHP
Author: By
Last change:
Date: 1 year ago
Size: 1,026 bytes


Class file image Download
name: build

on: [ push ]

    runs-on: ubuntu-20.04
      - uses: actions/checkout@v2
      - name: Install composer dependencies
        run: composer install --dev
      - name: Extract branch name
        shell: bash
        run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
        id: extract_branch
      - name: Extract crowphp absolute path
        run: CROWPHP_PATH=$(pwd)
      - name: Run PHP code sniffer
        run: composer phpcs
      - name: Run PHP static analysis
        run: composer phpstan
      - name: Run PHPUnit
        run: composer phpunit
      - name: Create coverage badge
        run: |
          php vendor/bin/badger upload:coverage $BADGER_SERVER $BRANCH_NAME $BADGER_SECRET_KEY
          BADGER_SECRET_KEY: ${{ secrets.BADGER_SECRET_KEY }}
          BADGER_SERVER: ${{ secrets.BADGER_SERVER }}
          BRANCH_NAME: ${{ steps.extract_branch.outputs.branch }}

For more information send a message to info at phpclasses dot org.