-
Notifications
You must be signed in to change notification settings - Fork 0
113 lines (88 loc) · 3.04 KB
/
Copy pathregression.yml
File metadata and controls
113 lines (88 loc) · 3.04 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
name: Regression Full stack tests
on:
pull_request:
branches: [ "master" ]
jobs:
checkRelease:
runs-on: ubuntu-latest
outputs:
isReleasePR: ${{ steps.release-checker.outputs.isReleasePR }}
steps:
- name: Check for release PR
id: release-checker
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run:
if [[ $PR_TITLE =~ ^(Release packages) ]]
then
echo "isReleasePR=true" >> "$GITHUB_OUTPUT";
else
echo "isReleasePR=false" >> "$GITHUB_OUTPUT";
fi
buildPackages:
needs: [checkRelease]
if: ${{ needs.checkRelease.outputs.isReleasePR == 'false' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install pnpm
uses: pnpm/action-setup@v5
- name: Use Node.js 24
uses: actions/setup-node@v6
with:
node-version: 24
cache: 'pnpm'
- name: Update dependencies for testing
run: node ./scripts/regression/fixDependencies.js
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Build packages
run: pnpm lage build --to @itwin/presentation-components @itwin/presentation-core-interop --grouped
- name: Pack components
run: pnpm pack
working-directory: packages/components
- name: Pack core-interop
run: pnpm pack
working-directory: packages/core-interop
- name: Gather tarballs
run: node ./scripts/regression/gatherTarballs.js
- name: Upload artifacts
uses: actions/upload-artifact@v7
with:
name: built-packages
path: built-packages
runTests:
needs: [buildPackages]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
core-version: ["4.4.0", "4.10.7"]
appui-version: ["4.9.0", "4.17.6"]
name: Build with Core - ${{ matrix.core-version }}, AppUI - ${{ matrix.appui-version }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install pnpm
uses: pnpm/action-setup@v5
- name: Use Node.js 24
uses: actions/setup-node@v6
with:
node-version: 24
cache: 'pnpm'
- name: Download artifacts
uses: actions/download-artifact@v8
with:
name: built-packages
path: ./built-packages
- name: Install workspace dependencies
run: pnpm install -w
- name: Override dependencies Core - ${{ matrix.core-version }}, AppUI - ${{ matrix.appui-version }}
run: node ./scripts/regression/setupRegressionTests.js --coreVersion ${{ matrix.core-version }} --uiVersion ${{ matrix.appui-version }} --localPackagesPath ./built-packages
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Build
run: pnpm lage build --to presentation-full-stack-tests --grouped --continue
- name: Run full stack tests
run: pnpm --filter presentation-full-stack-tests test