Adding - NumberInput (#43) #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GitHub Actions Documentation: https://docs.github.com/en/actions | |
name: "build" | |
on: | |
push: | |
branches: | |
- "main" | |
tags: | |
- "*" | |
pull_request: | |
branches: | |
- "main" | |
# Cancels all previous workflow runs for the same branch that have not yet completed. | |
concurrency: | |
# The concurrency group contains the workflow name and the branch name. | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
COMPOSER_ROOT_VERSION: "1.99.99" | |
jobs: | |
coding-standards: | |
name: "Coding standards" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Checkout repository" | |
uses: "actions/checkout@v2" | |
- name: "Install PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
php-version: "8.1" | |
coverage: none | |
- name: "Install dependencies (Composer)" | |
uses: "ramsey/composer-install@v2" | |
- name: "Check coding standards (PHP CS Fixer)" | |
shell: "bash" | |
run: "composer style-lint" | |
static-analysis: | |
name: "Static analysis" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Checkout repository" | |
uses: "actions/checkout@v2" | |
- name: "Install PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
php-version: "8.1" | |
coverage: "none" | |
- name: "Install dependencies (Composer)" | |
uses: "ramsey/composer-install@v2" | |
- name: "Statically analyze code (PHPStan)" | |
shell: "bash" | |
run: "composer stan" | |
unit-tests: | |
name: "Unit tests" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Checkout repository" | |
uses: "actions/checkout@v2" | |
- name: "Install PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
php-version: "8.1" | |
ini-values: "memory_limit=-1" | |
- name: "Install dependencies (Composer)" | |
uses: "ramsey/composer-install@v2" | |
- name: "Run unit tests (PHPUnit)" | |
shell: "bash" | |
run: "composer test-ci" |