Skip to content
This repository has been archived by the owner on Dec 30, 2024. It is now read-only.

Commit

Permalink
Merge branch 'testing'
Browse files Browse the repository at this point in the history
  • Loading branch information
electroly committed May 25, 2024
2 parents 0fe07f5 + 095d794 commit 7b4f3ee
Show file tree
Hide file tree
Showing 130 changed files with 4,999 additions and 4,049 deletions.
21 changes: 18 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
#!/bin/bash
set -euxo pipefail

IMAGE_NAME="chromeshack"

selinux_status () {
ENFORCING=false
if command -v getenforce; then
local enforcing_status=$(getenforce)
if [ "$enforcing_status" == "Enforcing" ]; then
ENFORCING=true
fi
fi
}

selinux_status
RELABEL=""
if [[ "$ENFORCING" == true ]]; then
RELABEL=":z"
fi

mkdir -p artifacts

docker build -t $IMAGE_NAME .
docker run --rm -i \
-v "./artifacts:/code/artifacts" \
--name $IMAGE_NAME $IMAGE_NAME
-v "./artifacts:/code/artifacts${RELABEL}" \
--name $IMAGE_NAME $IMAGE_NAME
42 changes: 21 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chromeshack",
"version": "1.76.0",
"version": "1.77.0",
"description": "Collection of scripts for Shacknews.",
"repository": "https://github.com/latestchatty/chromeshack",
"type": "module",
Expand Down Expand Up @@ -29,43 +29,43 @@
"format": "run-s pretty && biome format --write ."
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.5.1",
"@fortawesome/free-regular-svg-icons": "^6.5.1",
"@fortawesome/free-solid-svg-icons": "^6.5.1",
"@fortawesome/react-fontawesome": "^0.2.0",
"dompurify": "^3.0.8",
"@fortawesome/fontawesome-svg-core": "^6.5.2",
"@fortawesome/free-regular-svg-icons": "^6.5.2",
"@fortawesome/free-solid-svg-icons": "^6.5.2",
"@fortawesome/react-fontawesome": "^0.2.1",
"dompurify": "^3.1.4",
"embla-carousel-react": "8.0.0-rc19",
"html-react-parser": "^4.2.10",
"lodash.isequal": "^4.5.0",
"lz-string": "^1.5.0",
"preact": "^10.19.4",
"preact": "^10.22.0",
"prop-types": "15.8.1",
"text-field-edit": "^4.0.0",
"text-field-edit": "^4.1.1",
"ts-debounce": "^4.0.0",
"xss": "^1.0.14",
"zustand": "^4.5.0"
"xss": "^1.0.15",
"zustand": "^4.5.2"
},
"devDependencies": {
"@biomejs/biome": "^1.5.3",
"@biomejs/biome": "^1.7.3",
"@crxjs/vite-plugin": "2.0.0-beta.23",
"@playwright/test": "1.41.2",
"@preact/preset-vite": "^2.8.1",
"@preact/preset-vite": "^2.8.2",
"@types/chrome": "^0.0.246",
"@types/dompurify": "^3.0.5",
"@types/jquery": "^3.5.29",
"@types/jquery": "^3.5.30",
"@types/lodash.isequal": "^4.5.8",
"@types/node": "^20.11.17",
"@types/react": "^18.2.55",
"@types/react-dom": "^18.2.19",
"adm-zip": "^0.5.10",
"dotenv": "^16.4.4",
"@types/node": "^20.12.12",
"@types/react": "^18.3.2",
"@types/react-dom": "^18.3.0",
"adm-zip": "^0.5.12",
"dotenv": "^16.4.5",
"embla-carousel": "8.0.0-rc19",
"glob": "^10.3.10",
"glob": "^10.3.15",
"jest": "^29.7.0",
"license-checker": "^25.0.1",
"npm-run-all": "^4.1.5",
"prettier": "^3.2.5",
"typescript": "^5.3.3",
"vite": "^5.1.1"
"typescript": "^5.4.5",
"vite": "^5.2.11"
}
}
4 changes: 2 additions & 2 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ export default defineConfig({
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 0 : 1,
workers: process.env.CI ? 2 : 4,
workers: process.env.CI ? 2 : 3,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: [
["list", { printSteps: true, outputFolder: "results/reports" }],
["html", { open: "never", outputFolder: "results/reports" }],
["html", { open: "never", outputFolder: "results/reports", host: "0.0.0.0", port: 9323 }],
],
outputDir: "results/tests",

Expand Down
Loading

0 comments on commit 7b4f3ee

Please sign in to comment.