Skip to content

Commit

Permalink
ci: update e2e-local script
Browse files Browse the repository at this point in the history
  • Loading branch information
chintankavathia committed Nov 26, 2024
1 parent 016c81b commit 857218c
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
* text=auto
docs/* linguist-documentation
release/* linguist-vendored
playwright/snapshots/e2e/**/*.png filter=lfs diff=lfs merge=lfs -text
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ yarn.lock
/blob-report/
/playwright/.cache/
/playwright/results/
.env
4 changes: 4 additions & 0 deletions e2e-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ fi

echo "Using '$DOCKER' in '$NETWORK_MODE' mode, connecting to '$LOCAL_ADDRESS:$PORT'"

# Fetch snapshots using the npm script
echo "Fetching snapshots..."
npm run fetch-snapshots

if [ x$1 = "xshell" ]; then
shift
$DOCKER run -it --rm \
Expand Down
77 changes: 71 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
"test:unit": "ng test ngx-datatable-lib --watch=false",
"test:watch": "ng test ngx-datatable-lib",
"test:ci": "ng test ngx-datatable-lib --watch=false --progress=false --browsers=ChromeHeadlessCI",
"fetch-snapshots": "dotenv -e .env -- git clone https://[email protected]/chintankavathia/ngx-datatable-snapshots.git temp_snapshots && mkdir -p playwright/snapshots && cp -r temp_snapshots/snapshots/* playwright/snapshots/ && rm -rf temp_snapshots",
"ci": "run-s lint test:ci",
"lint": "ng lint",
"e2e:prepare": "playwright install",
"vrt": "cross-env playwright test",
"vrt:local": "yarn fetch-snapshots && yarn vrt",
"vrt:update": "yarn vrt --update-snapshots",
"build-docs": "cross-env NODE_ENV=production ng build --configuration production --base-href=\"/ngx-datatable/\"",
"predeploy-docs": "npm run build-docs",
Expand Down Expand Up @@ -64,9 +66,11 @@
"angular-cli-ghpages": "^0.6.0",
"cpx": "^1.5.0",
"cross-env": "^7.0.2",
"dotenv-cli": "^7.4.4",
"eslint": "^9.8.0",
"eslint-plugin-jsdoc": "48.0.2",
"eslint-plugin-prefer-arrow": "^1.2.3",
"http-server": "^13.0.0",
"jasmine": "^3.5.0",
"jasmine-core": "~3.10.1",
"jasmine-spec-reporter": "~7.0.0",
Expand All @@ -82,8 +86,7 @@
"sass": "^1.77.6",
"scss-bundle": "^3.1.1",
"ts-node": "^10.9.2",
"typescript": "~5.5.4",
"http-server": "^13.0.0"
"typescript": "~5.5.4"
},
"optionalDependencies": {
"@axe-core/playwright": "4.8.2",
Expand Down

0 comments on commit 857218c

Please sign in to comment.