Skip to content

PPI-1041 - Updated lint and test suite #110

PPI-1041 - Updated lint and test suite

PPI-1041 - Updated lint and test suite #110

Workflow file for this run

name: Admin
on:
push:
branches:
- trunk
pull_request:
paths:
- src/Resources/app/administration/**/*
- tests/jest/administration/**/*
workflow_dispatch:
permissions:
contents: read
id-token: write
jobs:
eslint:
runs-on: ubuntu-latest
steps:
- name: Checkout SwagPayPal
uses: actions/checkout@v4
with:
path: custom/plugins/${{ github.event.repository.name }}
- name: Setup SwagPayPal
uses: ./custom/plugins/SwagPayPal/.github/actions/setup-paypal
with:
install-admin: true
- name: Prepare environment
working-directory: custom/plugins/${{ github.event.repository.name }}/tests/jest/administration
run: npm ci --no-audit --no-fund --prefer-offline
- name: Run ESLint
env:
ADMIN_PATH: ${{ github.workspace }}/src/Administration/Resources/app/administration
working-directory: custom/plugins/${{ github.event.repository.name }}
run: composer run lint:admin:ci
jest:
runs-on: ubuntu-latest
steps:
- name: Checkout SwagPayPal
uses: actions/checkout@v4
with:
path: custom/plugins/${{ github.event.repository.name }}
- name: Setup SwagPayPal
uses: ./custom/plugins/SwagPayPal/.github/actions/setup-paypal
with:
install-admin: true
- name: Prepare environment
working-directory: custom/plugins/${{ github.event.repository.name }}/tests/jest/administration
run: npm ci --no-audit --no-fund --prefer-offline
- name: Run Jest
env:
ADMIN_PATH: ${{ github.workspace }}/src/Administration/Resources/app/administration
working-directory: custom/plugins/${{ github.event.repository.name }}
run: composer run jest