Skip to content

Commit

Permalink
Resolves issue raml-org#172
Browse files Browse the repository at this point in the history
  • Loading branch information
peter279k committed May 12, 2022
1 parent 2c9d190 commit 81c2724
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: build

on: [ push, pull_request ]

jobs:
run:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ ubuntu-latest ]
php-versions: [ '7.3', '7.4', '8.0', '8.1' ]
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, zip, xml, curl
coverage: pcov

- name: Check PHP Version
run: php -v

- name: Check Composer Version
run: composer -V

- name: Check PHP Extensions
run: php -m

- name: Validate composer.json and composer.lock
run: composer validate

- name: Install dependencies
run: composer update -n --prefer-dist --no-progress

- name: Run test suite
run: composer run-ci;

- name: Run test with clover
run: composer run-tests-with-clover

- name: Run Coveralls
run: bin/php-coveralls -v

0 comments on commit 81c2724

Please sign in to comment.