-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (39 loc) · 1.25 KB
/
admin.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Administration
on:
push:
branches:
- trunk
pull_request:
workflow_dispatch:
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 'true'
COMPOSER_ROOT_VERSION: 6.6.9999999-dev
jobs:
unit:
name: Jest
runs-on: ubuntu-latest
steps:
- name: Setup extension
uses: shopware/github-actions/setup-extension@main
with:
extensionName: SwagExtensionStore
shopwareVersion: trunk
install-admin: true
- name: Jest Unit Tests
shell: bash
working-directory: custom/plugins/SwagExtensionStore/src/Resources/app/administration
run: npm run unit -- --coverage
- name: Upload Coverage
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
root_dir: ${{ github.workspace }}/custom/plugins/SwagExtensionStore
working-directory: ${{ github.workspace }}/custom/plugins/SwagExtensionStore
directory: ${{ github.workspace }}/custom/plugins/SwagExtensionStore/src/Resources/app/administration
lint:
name: ESLint
uses: shopware/github-actions/.github/workflows/admin-eslint.yml@main
with:
extensionName: ${{ github.event.repository.name }}
shopwareVersion: trunk