testdriverai 7.2.13 → 7.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
name: Scheduled Acceptance Tests (Linux)
|
|
2
|
+
|
|
3
|
+
permissions:
|
|
4
|
+
id-token: write
|
|
5
|
+
contents: read
|
|
6
|
+
|
|
7
|
+
on:
|
|
8
|
+
schedule:
|
|
9
|
+
# Every 6 hours
|
|
10
|
+
- cron: '0 */6 * * *'
|
|
11
|
+
workflow_dispatch: # Allow manual trigger
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
test-linux:
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
|
+
|
|
20
|
+
- name: Setup Node.js
|
|
21
|
+
uses: actions/setup-node@v4
|
|
22
|
+
with:
|
|
23
|
+
node-version: '20'
|
|
24
|
+
cache: 'npm'
|
|
25
|
+
|
|
26
|
+
- name: Install dependencies
|
|
27
|
+
run: npm ci
|
|
28
|
+
|
|
29
|
+
- name: Install Sentry CLI
|
|
30
|
+
run: npm install -g @sentry/cli
|
|
31
|
+
|
|
32
|
+
- name: Run Linux tests with Sentry Cron monitoring
|
|
33
|
+
run: |
|
|
34
|
+
sentry-cli monitors run testdriver-linux-acceptance -- npx vitest run test/testdriver/*.test.mjs
|
|
35
|
+
env:
|
|
36
|
+
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
|
|
37
|
+
TD_API_KEY: ${{ secrets.TD_API_KEY }}
|
|
38
|
+
TD_OS: linux
|
|
39
|
+
|
|
40
|
+
- name: Upload test results to Sentry Prevent
|
|
41
|
+
if: ${{ !cancelled() }}
|
|
42
|
+
uses: getsentry/prevent-action@v0
|
|
43
|
+
with:
|
|
44
|
+
token: ${{ secrets.SENTRY_PREVENT_TOKEN }}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
name: Scheduled Acceptance Tests (Windows)
|
|
2
|
+
|
|
3
|
+
permissions:
|
|
4
|
+
id-token: write
|
|
5
|
+
contents: read
|
|
6
|
+
|
|
7
|
+
on:
|
|
8
|
+
schedule:
|
|
9
|
+
# Every day at midnight UTC
|
|
10
|
+
- cron: '0 0 * * *'
|
|
11
|
+
workflow_dispatch: # Allow manual trigger
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
test-windows:
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
|
+
|
|
20
|
+
- name: Setup Node.js
|
|
21
|
+
uses: actions/setup-node@v4
|
|
22
|
+
with:
|
|
23
|
+
node-version: '20'
|
|
24
|
+
cache: 'npm'
|
|
25
|
+
|
|
26
|
+
- name: Install dependencies
|
|
27
|
+
run: npm ci
|
|
28
|
+
|
|
29
|
+
- name: Install Sentry CLI
|
|
30
|
+
run: npm install -g @sentry/cli
|
|
31
|
+
|
|
32
|
+
- name: Run Windows tests with Sentry Cron monitoring
|
|
33
|
+
run: |
|
|
34
|
+
sentry-cli monitors run testdriver-windows-acceptance -- npx vitest run test/testdriver/*.test.mjs
|
|
35
|
+
env:
|
|
36
|
+
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
|
|
37
|
+
TD_API_KEY: ${{ secrets.TD_API_KEY }}
|
|
38
|
+
TD_OS: windows
|
|
39
|
+
|
|
40
|
+
- name: Upload test results to Sentry Prevent
|
|
41
|
+
if: ${{ !cancelled() }}
|
|
42
|
+
uses: getsentry/prevent-action@v0
|
|
43
|
+
with:
|
|
44
|
+
token: ${{ secrets.SENTRY_PREVENT_TOKEN }}
|
|
@@ -37,6 +37,8 @@ jobs:
|
|
|
37
37
|
- name: Upload test results to Sentry Prevent
|
|
38
38
|
if: ${{ !cancelled() }}
|
|
39
39
|
uses: getsentry/prevent-action@v0
|
|
40
|
+
with:
|
|
41
|
+
token: ${{ secrets.SENTRY_PREVENT_TOKEN }}
|
|
40
42
|
|
|
41
43
|
- name: Publish Test Results
|
|
42
44
|
uses: EnricoMi/publish-unit-test-result-action@v2
|
package/package.json
CHANGED