Skip to content

Added style and script bundling to workflow #3

Added style and script bundling to workflow

Added style and script bundling to workflow #3

Workflow file for this run

name: Build and Dist
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Validate composer.json and composer.lock
run: composer validate --strict

Check failure on line 22 in .github/workflows/composer.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/composer.yml

Invalid workflow file

You have an error in your yaml syntax on line 22
- 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: Install Composer dependencies
run: composer install --prefer-dist --no-progress
# 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: Install npm dependencies
run: npm install
- name: Install sass
run: npm install -g sass
- name: Compile SCSS
run: npm run sass
- name: Bundle scripts
run: npm run webpack