-
Notifications
You must be signed in to change notification settings - Fork 674
Expand file tree
/
Copy pathaction.yml
More file actions
108 lines (97 loc) · 3.09 KB
/
Copy pathaction.yml
File metadata and controls
108 lines (97 loc) · 3.09 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: "Run QUnit tests"
description: "Runs tests with environment specified through parameters"
inputs:
name:
description: "Test run name"
required: true
constel:
description: "Name of the test group"
useJQuery:
description: "Indicates if jQuery should be used"
default: "false"
userAgent:
description: "User agent string to be passed to the browser"
default: ""
useShadowDom:
description: "Specifies if shadow DOM should be utilized"
default: "false"
timezone:
description: "Timezone for the test environment"
default: ""
headless:
description: "Specifies if the browser should run in headless mode"
default: "true"
useCsp:
description: "Indicates if tests should run with Content Security Policy (CSP) enabled"
default: "true"
maxWorkers:
description: "Maximum number of parallel test workers"
default: ""
runs:
using: composite
steps:
- name: Setup MATRIX_ENVS_NAME_SAFE
shell: bash
run: |
MATRIX_ENVS_NAME_SAFE=$(echo -n "${{ inputs.name }}" | sed 's|/|-|g')
echo "MATRIX_ENVS_NAME_SAFE=$MATRIX_ENVS_NAME_SAFE"
echo "MATRIX_ENVS_NAME_SAFE=$MATRIX_ENVS_NAME_SAFE" >> $GITHUB_ENV
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: devextreme-artifacts
path: packages/devextreme
- name: Unpack artifacts
working-directory: ./packages/devextreme
shell: bash
run: |
rm -rf artifacts/npm
7z x artifacts.zip
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
- uses: pnpm/action-setup@v4
with:
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: |
${{ env.STORE_PATH }}
.nx/cache
key: ${{ runner.os }}-pnpm-cache-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-cache
- name: Install dependencies
shell: bash
run: pnpm install --frozen-lockfile
- name: Run QUnit tests
working-directory: ./packages/devextreme
shell: bash
env:
CONSTEL: ${{ inputs.constel }}
JQUERY: ${{ inputs.useJQuery }}
SHADOW_DOM: ${{ inputs.useShadowDom }}
TZ: ${{ inputs.timezone }}
NO_HEADLESS: ${{ inputs.headless == 'false' && 'true' || 'false' }}
NO_CSP: ${{ inputs.useCsp == 'false' && 'true' || 'false' }}
NORENOVATION: "false"
GITHUBACTION: "true"
TARGET: "test"
CHROME_CMD: ${{ env.CHROME_SHELL }}
MAX_WORKERS: ${{ inputs.maxWorkers }}
run: |
chmod +x ./docker-ci.sh
./docker-ci.sh
- name: Copy RawLog.txt
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: RawLog-${{ env.MATRIX_ENVS_NAME_SAFE }}
path: ${{ github.workspace }}/packages/devextreme/testing/RawLog.txt
if-no-files-found: ignore