Skip to content

Commit

Permalink
Merge pull request #96 from Facts-and-Files/feat/scoresEndpoint
Browse files Browse the repository at this point in the history
build: add test CI
  • Loading branch information
trenc authored Mar 12, 2024
2 parents 623e693 + 73fdb86 commit 342241b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Run tests

on: [push, pull_request]

jobs:
tests:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv
coverage: none

- name: Run composer install
run: |
cd src
cp .env.example .env
composer install -n --prefer-dist
- name: Prepare Laravel Application
run: cd src && php artisan key:generate

- name: Run tests
run: cd src && php artisan test --without-tty

0 comments on commit 342241b

Please sign in to comment.