Skip to content

ci(PT13113): Add github workflow for code style #37

ci(PT13113): Add github workflow for code style

ci(PT13113): Add github workflow for code style #37

name: Javascript
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
jobs:
javascript-code-analysis:
name: Code analysis
runs-on: ubuntu-latest
container:
image: ghcr.io/shopware5/docker-images-testing/install:shopware_5.7_8.0_8.2_none
credentials:
username: ${{ github.actor }}
password: ${{ secrets.github_token }}
env:
GH_TOKEN: ${{ github.token }}
steps:
- name: Move supervisord config
run: /usr/bin/supervisord -c /etc/supervisord.conf &
- name: Checkout SwagPaymentPaypal
uses: actions/checkout@v3
with:
path: plugin
- name: Move plugin
run: mv "$(pwd)/plugin" /shopware/engine/Shopware/Plugins/Local/Frontend/SwagPaymentPaypal
- name: Execute javascript code analysis
run: |
cd /shopware/engine/Shopware/Plugins/Local/Frontend/SwagPaymentPaypal
make check-js-code