Skip to content

Add studio backend bundle as composer dependency and remove PHP 8.1 support #360

Add studio backend bundle as composer dependency and remove PHP 8.1 support

Add studio backend bundle as composer dependency and remove PHP 8.1 support #360

Workflow file for this run

name: "Frontend Build"
on:
push:
branches:
- "[0-9]+.[0-9]+"
- "[0-9]+.x"
- "feature-*"
pull_request:
branches:
- "[0-9]+.[0-9]+"
- "[0-9]+.x"
- "*_actions"
- "feature-*"
permissions:
contents: read
jobs:
install:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- name: Cache npm dependencies
uses: actions/cache@v4
with:
path: ./assets/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
working-directory: ./assets
run: npm ci
lint:
needs: install
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- name: Cache npm dependencies
uses: actions/cache@v4
with:
path: ./assets/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Run code linting
working-directory: ./assets
run: npm run lint-fix
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Apply eslint-fixer changes
build:
needs: lint
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- name: Cache npm dependencies
uses: actions/cache@v4
with:
path: ./assets/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Run production build
working-directory: ./assets
run: npm run build
- uses: stefanzweifel/git-auto-commit-action@v5
with:
file_pattern: './public/build/'
commit_message: Automatic frontend build
test:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- name: Cache npm dependencies
uses: actions/cache@v4
with:
path: ./assets/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Run tests
working-directory: ./assets
run: npm run test