Skip to content

Commit

Permalink
fix yml for js
Browse files Browse the repository at this point in the history
  • Loading branch information
kyledoesdev committed Nov 27, 2024
1 parent 0bfd48f commit 7ee1605
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/laravel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@ on:

jobs:
laravel-tests:

runs-on: ubuntu-latest
environment: production

steps:
- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
- name: Setup PHP
uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
with:
php-version: '8.3'
tools: composer:v2

- uses: actions/checkout@v4

- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"

Expand All @@ -35,8 +39,14 @@ jobs:
run: |
mkdir -p database
touch database/database.sqlite
- name: Execute tests (Unit and Feature tests) via PHPUnit/Pest
- name: Install Front End Assets
run: npm install

- name: Build Front End Assets
run: npm run build

- name: Execute tests (Unit and Feature tests) via PHPUnit/Pest
env:
DB_CONNECTION: sqlite
DB_DATABASE: database/database.sqlite
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/ExampleTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

it('home page loads', function () {
it('loads the home page', function () {
$this->get('/')->assertStatus(302); /* redirects home */
$this->get('/home')->assertStatus(302); /* redirects to ?season=3 */
$this->get('/home?season=3')->assertOk(); /* Home */
Expand Down

0 comments on commit 7ee1605

Please sign in to comment.