diff --git a/stubs/workflows/ci.stub b/stubs/workflows/ci.stub index 7029197..3db7d95 100644 --- a/stubs/workflows/ci.stub +++ b/stubs/workflows/ci.stub @@ -36,15 +36,6 @@ jobs: php-version: "8.1" extensions: xdebug - - name: Setup Node - uses: actions/setup-node@v3 - with: - node-version: latest - cache: 'npm' - - - name: Install dependencies - run: npm install && npm run build - - name: Copy .env run: php -r "file_exists('.env') || copy('.env.example', '.env');" @@ -57,6 +48,15 @@ jobs: - name: Setup permissions run: chmod -R 777 storage bootstrap/cache + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: latest + cache: 'npm' + + - name: Install dependencies + run: npm install && npm run build + - name: Run tests timeout-minutes: 30 run: vendor/bin/pest