duh. It would help to actually put the actions in the right directory #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Frontend Test | |
on: | |
push: | |
branches: [master, staging, dev] | |
pull_request: | |
branches: [master, staging, dev] | |
jobs: | |
laravel-npm-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "8.1" | |
extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite, dom, filter, gd, json, mbstring, pdo | |
- name: Copy .env | |
run: php -r "file_exists('.env') || copy('.env.example', '.env');" | |
- name: Install Composer dependencies | |
run: composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "22.7.0" | |
- name: Install specific npm version | |
run: npm install -g npm@10.8.2 | |
- name: Install NPM dependencies | |
run: npm ci | |
- name: Run tests | |
run: npm run test:pipeline |