Skip to content

chore: Remove composer lock on plugin build #57

chore: Remove composer lock on plugin build

chore: Remove composer lock on plugin build #57

Workflow file for this run

name: Coding Standards and Static Analysis
on: [ push ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
coverage: none
tools: composer, cs2pr
- name: Set up NodeJS
uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Checkout repository
uses: actions/checkout@v3
- name: NodeJS cache
id: node-cache
uses: actions/cache@v3
with:
path: node_modules
key: node-${{ hashFiles( 'package-lock.json' ) }}-${{ hashFiles( '.github/workflows/main.yml' ) }}
# TODO: Composer cache was causing some issue in the pipeline, therefore removed it. Need to fix and bring it back.
- name: Install Composer dependencies
run: composer install
- name: Install NodeJS dependencies
if: steps.node-cache.outputs.cache-hit != 'true'
run: npm ci
- name: PHP Coding standards
run: npm run lint:php
- name: PHP Static Analysis
run: npm run static-analysis:php