diff --git a/e2e-local.sh b/e2e-local.sh index 3b57bc4d7..c7a0c48b3 100644 --- a/e2e-local.sh +++ b/e2e-local.sh @@ -48,9 +48,8 @@ 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 +# Configure LFS URLs +npm run lfs:prepare if [ x$1 = "xshell" ]; then shift diff --git a/package.json b/package.json index 0a2a33941..8904d0cb8 100644 --- a/package.json +++ b/package.json @@ -15,12 +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://$SNAPSHOT_REPO_TOKEN@github.com/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", + "lfs:prepare": "git config remote.origin.lfspushurl https://github.com/chintankavathia/ngx-datatable-snapshots.git/info/lfs && git config remote.origin.lfsurl https://github.com/chintankavathia/ngx-datatable-snapshots.git/info/lfs", "vrt": "cross-env playwright test", - "vrt:local": "yarn fetch-snapshots && yarn vrt", + "vrt:local": "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",