Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
14 commits
Select commit Hold shift + click to select a range
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
1 change: 1 addition & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"always",
[
"build",
"chore",
"ci",
"docs",
"feat",
Expand Down
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

41 changes: 0 additions & 41 deletions .eslintrc.json

This file was deleted.

26 changes: 13 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
name: Node ${{ matrix.node }}
node-version: [22.x]
name: Node ${{ matrix.node-version }}

steps:
- uses: actions/checkout@v4
Expand All @@ -29,14 +29,14 @@ jobs:
- name: test
run: npm run nx -- run-many -t test --skip-nx-cache --parallel=false

# Code PushUp command
- name: Collect and upload Code PushUp report
run: npx code-pushup autorun
env:
CP_API_KEY: ${{ secrets.CP_API_KEY }}
NODE_OPTIONS: --max-old-space-size=8192
- name: Save report files as workflow artifact
uses: actions/upload-artifact@v3
with:
name: code-pushup-report
path: .code-pushup/
# # Code PushUp command
# - name: Collect and upload Code PushUp report
# run: npx code-pushup autorun
# env:
# CP_API_KEY: ${{ secrets.CP_API_KEY }}
# NODE_OPTIONS: --max-old-space-size=8192
# - name: Save report files as workflow artifact
# uses: actions/upload-artifact@v4
# with:
# name: code-pushup-report
# path: .code-pushup/
4 changes: 2 additions & 2 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
node-version: [ 20.x ]
name: Node ${{ matrix.node }}
name: Node ${{ matrix.node-version }}

steps:
- uses: actions/checkout@v4
Expand All @@ -36,7 +36,7 @@ jobs:
NODE_OPTIONS: --max-old-space-size=8192

- name: Save report files as workflow artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: code-pushup-report
path: .code-pushup/
23 changes: 20 additions & 3 deletions .github/workflows/user-flow-gh-integration.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,38 @@
name: user-flow-gh-integration

on:
pull_request:
paths-ignore:
- '*.md'

jobs:
user-flow-integrated-in-ci:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
strategy:
matrix:
node-version: [20.x]
node-version: [22.x]
name: Node ${{ matrix.node-version }}

steps:
- uses: actions/checkout@v4
- name: use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
fetch-depth: 0

- name: Setup node ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
cache: 'npm'
node-version: ${{ matrix.node-version }}

- name: install
run: npm ci

- name: Install Chrome for Puppeteer
run: npx puppeteer browsers install chrome

- name: run:user-flow-action
uses: push-based/user-flow-gh-action@v0.3.2
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/user-flow-md-report-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
name: Node ${{ matrix.node }}
node-version: [22.x]
name: Node ${{ matrix.node-version }}

steps:
- uses: actions/checkout@v4
Expand All @@ -28,7 +28,7 @@ jobs:
run: npm ci

- name: Collect Report
run: npm run @push-based/user-flow -- --rcPath ./examples/github-report/.user-flowrc.json --openReport false
run: npm run build-cli && node ./dist/packages/cli/src/cli.mjs --rcPath ./examples/github-report/.user-flowrc.json --openReport false

- name: Rename Report
run: npx tsx --tsconfig ./examples/github-report/tsconfig.json ./examples/github-report/tools/md-report-rename.mts
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,8 @@ Thumbs.db
.code-pushup

examples/**/measures/*

vite.config.*.timestamp*
vitest.config.*.timestamp*
.cursor/rules/nx-rules.mdc
.github/instructions/nx.instructions.md
3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
3 changes: 1 addition & 2 deletions code-pushup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ const config: CoreConfig = {
slug: 'code-style',
title: 'Code style',
refs: [
{ type: 'group', plugin: 'eslint', slug: 'suggestions', weight: 75 },
{ type: 'group', plugin: 'eslint', slug: 'formatting', weight: 25 },
{ type: 'group', plugin: 'eslint', slug: 'suggestions', weight: 100 },
],
},
],
Expand Down
7 changes: 0 additions & 7 deletions e2e/cli-e2e/.eslintrc.json

This file was deleted.

8 changes: 8 additions & 0 deletions e2e/cli-e2e/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import baseConfig from '../../eslint.config.mjs';

export default [
{
ignores: ['**/dist'],
},
...baseConfig,
];
10 changes: 9 additions & 1 deletion e2e/cli-e2e/mocks/user-flows/basic-navigation.uf.mts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,13 @@ const interactions: UserFlowInteractionsFn = async (ctx: UserFlowContext): Promi

export default {
flowOptions: {name: 'Basic Navigation Example'},
interactions
interactions,
launchOptions: {
args: [
'--no-sandbox',
'--disable-setuid-sandbox',
'--disable-dev-shm-usage',
'--disable-gpu'
]
}
} satisfies UserFlowProvider;
10 changes: 4 additions & 6 deletions e2e/cli-e2e/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "e2e/cli-e2e/src",
"projectType": "application",
"tags": ["type:e2e"],
"implicitDependencies": ["cli"],
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["e2e/cli-e2e/**/*.ts"]
Expand All @@ -17,9 +19,5 @@
"config": "e2e/cli-e2e/vite.config.e2e.mts"
}
}
},
"implicitDependencies": [
"cli"
],
"tags": ["type:e2e"]
}
}
Loading