-
Notifications
You must be signed in to change notification settings - Fork 32
138 lines (114 loc) · 3.9 KB
/
Copy pathapplications.yml
File metadata and controls
138 lines (114 loc) · 3.9 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
name: Application tests
on:
push:
branches: [ "master" ]
pull_request:
workflow_call:
inputs:
deps-version-tag:
description: 'Version tag of scaffolder and framework'
default: ''
required: false
type: string
jobs:
application-test:
strategy:
fail-fast: false
matrix:
APPROACH:
- angular
- vue-v3
- react
- react-ts
- react-swc
- react-swc-ts
- nextjs
- nextjs-ts
NODE:
- 24
OS:
- ubuntu-latest
runs-on: ${{ matrix.OS }}
env:
VUE_CLI_CONFIG_PATH: $GITHUB_WORKSPACE/.vuerc
DEPS_VERSION_TAG_PARAM: ${{ inputs.deps-version-tag != '' && format('--deps-version-tag {0}', inputs.deps-version-tag) || '' }}
name: ${{ matrix.APPROACH }}, node ${{ matrix.NODE }}, ${{ matrix.OS }}
steps:
- name: Get sources
uses: actions/checkout@v6
- name: Install pnpm
uses: pnpm/action-setup@v6
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version-file: '.node-version'
cache: 'pnpm'
- name: Install dependencies
env:
PUPPETEER_SKIP_DOWNLOAD: true
run: pnpm install --frozen-lockfile
- uses: browser-actions/setup-chrome@v2
id: setup-chrome
- run: ${{ steps.setup-chrome.outputs.chrome-path }} --version
- name: Set Legacy-peer-deps=true
if: contains(fromJSON('["angular", "nextjs", "nextjs-ts"]'), matrix.APPROACH)
run: npm config set legacy-peer-deps true
- name: Create ${{ matrix.APPROACH }} application
working-directory: packages/devextreme-cli
run: node ./testing/creating.js -e ${{ matrix.APPROACH }} ${{ env.DEPS_VERSION_TAG_PARAM }}
timeout-minutes: 30
- name: Install Internal Packages
uses: DevExpress/github-actions/install-internal-package@install-internal-package
with:
working-directory: packages/devextreme-cli/testing/sandbox/${{ matrix.APPROACH }}/my-app
- name: Lint created application
if: ${{ matrix.OS != 'windows-latest' }}
run: pnpm run lint-template -e ${{ matrix.APPROACH }} ${{ env.DEPS_VERSION_TAG_PARAM }}
- name: ESLint Security Analysis
run: pnpm run lint-sandbox -- "packages/devextreme-cli/testing/sandbox/${{ matrix.APPROACH }}/my-app/**/*.{js,mjs,cjs,jsx,ts,tsx}"
- name: Run template tests
if: ${{ matrix.OS != 'windows-latest' }}
env:
LAUNCH_BROWSER: true
CHROME_PATH: ${{ steps.setup-chrome.outputs.chrome-path }}
run: pnpm run test-template -e ${{ matrix.APPROACH }} ${{ env.DEPS_VERSION_TAG_PARAM }}
timeout-minutes: 40
- name: Archive artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@v7
with:
name: app-tests-artifacts-${{ matrix.APPROACH }}-${{ matrix.NODE }}-${{ matrix.OS }}
path: |
test-results.xml
packages/devextreme-cli/testing/__tests__/__diff_snapshots__
packages/devextreme-cli/testing/sandbox/logs
merge-artifacts:
runs-on: ubuntu-latest
needs: application-test
if: ${{ failure() && !cancelled() }}
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v7
continue-on-error: true
with:
name: artifacts
pattern: app-tests-artifacts-*
delete-merged: true
schematics-test:
runs-on: ubuntu-latest
steps:
- name: Get sources
uses: actions/checkout@v6
- name: Install pnpm
uses: pnpm/action-setup@v6
- name: Set up Node.js and restore cache
uses: actions/setup-node@v6
with:
node-version-file: '.node-version'
cache: 'pnpm'
- name: Install dependencies
env:
PUPPETEER_SKIP_DOWNLOAD: true
run: pnpm install --frozen-lockfile
- name: Run schematics tests
run: pnpm --filter devextreme-schematics run test