home-erp

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

commit 08333fa834c682321a9c0ba96eacea2a7284a4d5
parent ad7235d740928406b1ac0aa9fc0f45d9544a93f9
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 21 Oct 2023 20:10:45 +0200

Make sure we build vite too

Diffstat:
M.github/workflows/analysis.yaml | 6++++--
M.github/workflows/tests.yaml | 7+++++--
Mtests/Feature/ProfileTest.php | 1+
3 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/analysis.yaml b/.github/workflows/analysis.yaml @@ -15,8 +15,10 @@ jobs: php-version: '8.2' coverage: none - - name: Install composer dependencies - run: composer install -n --prefer-dist + - name: Install dependencies + run: | + composer install -n --prefer-dist + npm install && npm run build - name: Run Static Analysis run: ./vendor/bin/phpstan --error-format=github diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml @@ -16,14 +16,17 @@ jobs: extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv coverage: none - - name: Run composer install - run: composer install -n --prefer-dist + - name: Install dependencies + run: | + composer install -n --prefer-dist + npm install - name: Prepare Laravel Application run: | cp .env.ci .env touch database/database.sqlite php artisan key:generate + npm run build - name: Run tests run: php artisan test diff --git a/tests/Feature/ProfileTest.php b/tests/Feature/ProfileTest.php @@ -21,6 +21,7 @@ class ProfileTest extends TestCase ->assertSeeVolt('profile.update-profile-information-form') ->assertSeeVolt('profile.update-password-form') ->assertSeeVolt('profile.delete-user-form') + ->assertSeeVolt('profile.api-tokens') ->assertOk(); }