testdriverai 5.7.37 → 5.7.38

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.
@@ -1,5 +1,8 @@
1
+ # Ensure affected code follows standards and is formatted correctly. Otherwise, automatic formatting in future changes will cause larger diffs.
1
2
  name: Lint + Prettier
3
+
2
4
  on: push
5
+
3
6
  jobs:
4
7
  lint:
5
8
  runs-on: ubuntu-latest
@@ -1,4 +1,5 @@
1
- name: TestDriver.ai
1
+ # CLI Acceptance Tests that validate & document E2E behavior with the CLI & TestDriver.ai API
2
+ name: Acceptance Tests
2
3
 
3
4
  permissions:
4
5
  contents: write
@@ -7,13 +8,30 @@ permissions:
7
8
  statuses: write
8
9
 
9
10
  on:
10
- push:
11
- branches: ["main"]
11
+ # Run in Merge Queue rather than individual PRs
12
+ merge_group:
13
+ # Through the GitHub UI
12
14
  workflow_dispatch:
15
+ # Run every day at midnight to ensure CLI -> API works
13
16
  schedule:
14
17
  - cron: "0 0 * * *"
15
18
 
16
19
  jobs:
20
+ publish-beta:
21
+ name: Publish testdriverai@beta
22
+ runs-on: ubuntu-latest
23
+ steps:
24
+ - uses: actions/checkout@v4
25
+ with:
26
+ ref: ${{ github.ref }}
27
+ - uses: actions/setup-node@v3
28
+ with:
29
+ node-version: "20"
30
+ - uses: JS-DevTools/npm-publish@v3
31
+ with:
32
+ tag: "beta"
33
+ token: ${{ secrets.NPM_AUTH_TOKEN }}
34
+
17
35
  gather-test-files:
18
36
  name: Gather Test Files
19
37
  runs-on: ubuntu-latest
@@ -48,6 +66,7 @@ jobs:
48
66
  id: testdriver
49
67
  uses: testdriverai/action@main
50
68
  with:
69
+ version: "beta"
51
70
  os: ${{ contains(matrix.os, 'windows') && 'windows' || 'linux' }}
52
71
  prerun: |
53
72
  exit
@@ -89,13 +108,14 @@ jobs:
89
108
  name: snippets-${{ matrix.os }}-${{ matrix.test }}
90
109
  path: snippets/
91
110
  retention-days: 1
111
+
92
112
  create-snippets-commit:
93
113
  name: Commit Snippets
94
114
  needs: run-tests
95
115
  runs-on: ubuntu-latest
96
116
  if: ${{ always() }}
97
117
  env:
98
- BASE_BRANCH: ${{ github.event.pull_request.base.ref || github.ref_name }}
118
+ BASE_BRANCH: ${{ github.ref_name }}
99
119
  steps:
100
120
  - name: Check out current branch
101
121
  uses: actions/checkout@v3
@@ -1,9 +1,11 @@
1
+ # `main` is always published to `testdriverai@latest`. Checks are performed in PRs and the Merge Queue to ensure a healthy `main` branch."
2
+ name: Publish to NPM
3
+
1
4
  on:
2
5
  push:
3
6
  branches:
4
7
  - main
5
8
 
6
- name: Publish to NPM
7
9
  jobs:
8
10
  bump_version:
9
11
  name: "Bump Version"
@@ -30,10 +32,10 @@ jobs:
30
32
  run: |
31
33
  git push https://${{ secrets.GH_TOKEN }}@github.com/testdriverai/testdriverai.git HEAD:main --force
32
34
 
33
- publish:
34
- name: Publish
35
- runs-on: ubuntu-latest
35
+ publish-latest:
36
+ name: Publish testdriverai@latest
36
37
  needs: bump_version
38
+ runs-on: ubuntu-latest
37
39
  steps:
38
40
  - uses: actions/checkout@v4
39
41
  with:
@@ -1,15 +1,11 @@
1
+ # Ensure that the published `testdriverai` package is installable on multiple version of Node.js across multiple operating systems.
1
2
  name: Test TestDriverAI Installation
2
3
 
3
4
  on:
4
5
  schedule:
5
6
  - cron: "0 * * * *" # Runs every hour
6
7
  workflow_dispatch:
7
- push:
8
- branches:
9
- - main
10
- pull_request:
11
- branches:
12
- - main
8
+ merge_group:
13
9
 
14
10
  jobs:
15
11
  install-testdriverai:
@@ -33,4 +29,4 @@ jobs:
33
29
  run: npm install -g testdriverai
34
30
 
35
31
  - name: Verify Installation
36
- run: testdriverai --help || echo "TestDriverAI not found"
32
+ run: testdriverai --help
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testdriverai",
3
- "version": "5.7.37",
3
+ "version": "5.7.38",
4
4
  "description": "Next generation autonomous AI agent for end-to-end testing of web & desktop",
5
5
  "main": "index.js",
6
6
  "bin": {