Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

# This line enables distribution
# The "--stop-agents-after" is optional, but allows idle agents to shut down once the "e2e-ci" targets have been requested
- run: pnpm dlx nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="e2e-ci" --verbose
- run: pnpm dlx nx-cloud start-ci-run --distribute-on=".nx/workflows/dynamic-changesets.yml" --stop-agents-after="e2e-ci" --verbose

- run: pnpm exec playwright install

Expand All @@ -46,6 +46,5 @@ jobs:
with:
name: playwright-report
path: |
./dist/.playwright/**
./dist/**
./**/.playwright/**
retention-days: 30
5 changes: 2 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:

# This line enables distribution
# The "--stop-agents-after" is optional, but allows idle agents to shut down once the "e2e-ci" targets have been requested
- run: pnpm dlx nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="e2e-ci" --verbose
- run: pnpm dlx nx-cloud start-ci-run --distribute-on=".nx/workflows/dynamic-changesets.yml" --stop-agents-after="e2e-ci" --verbose

- run: pnpm exec playwright install

Expand All @@ -55,8 +55,7 @@ jobs:
with:
name: playwright-report
path: |
./dist/.playwright/**
./dist/**
./**/.playwright/**
retention-days: 30

- run: git status
Expand Down
7 changes: 4 additions & 3 deletions .nx/workflows/dynamic-changesets.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
distribute-on:
small-changeset: 3 linux-medium-js
medium-changeset: 6 linux-medium-js
large-changeset: 10 linux-medium-js
small-changeset: 3 linux-medium-js # Distribute on small if 1-25% of projects affected in PR
medium-changeset: 6 linux-medium-js # Distribute on medium if 26-50% of projects affected in PR
large-changeset: 10 linux-medium-js # Distribute on large if 51-75% of projects affected in PR
extra-large-changeset: 15 linux-medium-js # Distribute on extra-large if 76-100% of projects affected in PR
3 changes: 2 additions & 1 deletion e2e/autoscript-suites/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ LICENSE
.bin
dist
.eslintignore
*.html
*.html
.playwright/
4 changes: 2 additions & 2 deletions e2e/autoscript-suites/playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as os from 'os';
import { PlaywrightTestConfig } from '@playwright/test';
import { nxE2EPreset } from '@nx/playwright/preset';
import { workspaceRoot } from '@nx/devkit';
import { fileURLToPath } from 'url';
Expand All @@ -13,8 +12,9 @@ const baseConfig = nxE2EPreset(__filename, {
testDir: './src/suites',
});

const config: PlaywrightTestConfig = {
const config = {
...baseConfig,
outputDir: './.playwright',
reporter: process.env.CI ? 'github' : 'list',
testIgnore: '**/authz-txn*',
use: {
Expand Down
3 changes: 2 additions & 1 deletion e2e/davinci-suites/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
.playwright/
node_modules
*.md
LICENSE
.babelrc
.env*
.bin
dist
.eslintignore
.eslintignore
1 change: 1 addition & 0 deletions e2e/davinci-suites/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const baseConfig = nxE2EPreset(__filename, {

const config: PlaywrightTestConfig = {
...baseConfig,
outputDir: './.playwright',
reporter: process.env.CI ? 'github' : 'list',
timeout: 30000,
use: {
Expand Down
3 changes: 2 additions & 1 deletion e2e/token-vault-suites/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ LICENSE
.env*
.bin
dist
.eslintignore
.eslintignore
./.playwright
1 change: 1 addition & 0 deletions e2e/token-vault-suites/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const baseConfig = nxE2EPreset(__filename, {

const config: PlaywrightTestConfig = {
...baseConfig,
outputDir: './.playwright',
reporter: process.env.CI ? 'github' : 'list',
timeout: 30000,
use: {
Expand Down
6 changes: 5 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"e2e": {
"dependsOn": ["^build"],
"inputs": ["noMarkdown", "^noMarkdown"],
"outputs": ["{projectRoot}/.playwright"],
"cache": true
},
"build": {
Expand Down Expand Up @@ -57,16 +58,19 @@
"@nx/playwright:run": {
"dependsOn": ["^build"],
"inputs": ["noMarkdown", "^noMarkdown"],
"outputs": ["{projectRoot}/.playwright"],
"cache": true
},
"@nx/esbuild:esbuild": {
"dependsOn": ["^build"],
"cache": true,
"inputs": ["noMarkdown", "^noMarkdown"]
"inputs": ["noMarkdown", "^noMarkdown"],
"outputs": ["{projectRoot}/dist"]
},
"e2e-ci--**/*": {
"dependsOn": ["^build"],
"inputs": ["noMarkdown", "^noMarkdown"],
"outputs": ["{projectRoot}/.playwright"],
"cache": true
},
"@nx/js:tsc": {
Expand Down
Loading