Skip to content

Commit

Permalink
Merge pull request #67 from astalpaert/feature/github-workflow
Browse files Browse the repository at this point in the history
Feature/GitHub workflow
  • Loading branch information
Douglasdc3 authored Oct 31, 2022
2 parents 6fe0020 + 1903952 commit c3b4eca
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: run-tests

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
run-tests:
runs-on: ubuntu-latest

steps:
- name: Update apt
run: sudo apt-get update --fix-missing

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, iconv, imagick, intl
coverage: none
env:
COMPOSER_AUTH_JSON: ${{ secrets.COMPOSER_AUTH_JSON }}

- name: Install dependencies
run: composer install --prefer-dist --no-interaction

- name: Execute tests
run: composer test
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,10 @@
"Elasticsearch": "AviationCode\\Elasticsearch\\Facades\\Elasticsearch"
}
}
},
"scripts": {
"test": [
"vendor/bin/phpunit"
]
}
}

0 comments on commit c3b4eca

Please sign in to comment.