Update dependency @vue/compiler-sfc to v3.5.12 #115
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
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Node.js and PHP Composer Lint Test and Build CI | |
on: | |
push: | |
branches: ['master'] | |
pull_request: | |
branches: ['master'] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v3 | |
- name: Validate composer.json and composer.lock π₯ | |
run: composer validate --strict | |
- name: Lint (Laravel Pint) -> https://laravel.com/docs π | |
run: composer install:tools && composer lint:check | |
- name: Cache Composer packages π¦ | |
id: composer-cache | |
uses: actions/cache@v3 | |
with: | |
path: vendor | |
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-php- | |
- name: Composer Install π₯οΈ | |
run: | | |
composer config "http-basic.nova.laravel.com" "${{ secrets.NOVA_USERNAME }}" "${{ secrets.NOVA_FOUR_PASSWORD }}" | |
composer install --no-interaction --no-progress --prefer-dist --optimize-autoloader | |
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit" | |
# Docs: https://getcomposer.org/doc/articles/scripts.md | |
# - name: Run test suite | |
# run: composer run-script test | |
- name: Setup Node.js π₯οΈ | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
- name: Install dependencies π¦ | |
run: yarn install | |
- name: Check code with prettier π | |
run: yarn format:check | |
- name: Check code with eslint π¨ | |
uses: reviewdog/action-eslint@v1 | |
with: | |
fail_on_error: true | |
- name: Install Nova Dependencies π¦ | |
run: yarn nova:install | |
- name: Build for production ποΈ | |
run: yarn prod |