home-erp

git clone git://archive.git.mtrnord.blog/MTRNord/home-erp.git
Log | Files | Refs | README

tests.yaml (763B)


      1 name: Run tests
      2 
      3 on: [push, pull_request]
      4 
      5 jobs:
      6   tests:
      7     name: Run tests
      8     runs-on: ubuntu-latest
      9     steps:
     10       - uses: actions/checkout@v4
     11 
     12       - name: Setup PHP
     13         uses: shivammathur/setup-php@v2
     14         with:
     15           php-version: '8.2'
     16           extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv
     17           coverage: none
     18 
     19       - name: Install dependencies
     20         run: |
     21           composer install -n --prefer-dist
     22           npm install
     23 
     24       - name: Prepare Laravel Application
     25         run: |
     26           cp .env.ci .env
     27           touch database/database.sqlite
     28           php artisan key:generate
     29           npm run build
     30 
     31       - name: Run tests
     32         run: php artisan test