Skip to content

Commit

Permalink
ci: trigger workflow on pull_request and YAML formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tsterker committed Jan 4, 2024
1 parent 9cf71eb commit 5bfbebc
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 additions & 22 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,38 @@
name: CI

on: [push]
on:
- push
- pull_request

jobs:
build-test:
runs-on: ubuntu-latest

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
extensions: mbstring, intl, sockets
coverage: xdebug
tools: composer, prestissimo
# tools: phpunit, composer, prestissimo, php-cs-fixer, phpstan
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "7.4"
extensions: mbstring, intl, sockets
coverage: xdebug
tools: composer, prestissimo
# tools: phpunit, composer, prestissimo, php-cs-fixer, phpstan

- run: composer install
- run: composer install

- name: Start SolrCloud
run: docker-compose up -d
- name: Start SolrCloud
run: docker-compose up -d

- name: Sleep a few seconds to wait for Solr to be ready
uses: jakejarvis/wait-action@master
with:
time: '10s'
- name: Sleep a few seconds to wait for Solr to be ready
uses: jakejarvis/wait-action@master
with:
time: "10s"

- name: PHPUnit
run: ./vendor/bin/phpunit --testdox --colors=always
- name: PHPUnit
run: ./vendor/bin/phpunit --testdox --colors=always

- name: PHPStan
run: ./vendor/bin/phpstan analyse --no-progress
- name: PHPStan
run: ./vendor/bin/phpstan analyse --no-progress

0 comments on commit 5bfbebc

Please sign in to comment.