Summer Sale! All accounts are 50% off this week.

Sinnbeck's avatar
Level 102

Missing manifest for vite in github actions

Has anyone gotten the new vite implementation to work on github actions. I am getting this error

Vite manifest not found at: /home/runner/work/myproj/myproj/public/build/manifest.json

I'm thinking I can perhaps make some "fix" by adding an extra task to add a dummy file, but I was hoping there is build in way of handling this.

0 likes
7 replies
martinbean's avatar
Level 80

@sinnbeck You can add a setUp method to your base TestCase to “fake” Vite:

<?php

namespace Tests;

use Illuminate\Foundation\Testing\TestCase as BaseTestCase;

abstract class TestCase extends BaseTestCase
{
    use CreatesApplication;

    protected function setUp(): void
    {
        parent::setUp();

        $this->withoutVite();
    }
}

(There’s also a withoutMix method that does the same but for, well, Mix.)

11 likes
Sinnbeck's avatar
Level 102

@martinbean Just found the same, but I will give you best answer for the nice and descriptive reply :) Thanks!

1 like

Please or to participate in this conversation.