Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .env.schema
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ REDIS_URL = redis://default:somenicepassword@redis-666.c10.us-east-6-6.ec666.clo
EXPIRE_CACHE = 1

# you must identify your origin, if not set it will use default
USER_AGENT = "lustpress/1.6.0 Node.js/16.9.1"
USER_AGENT = "lustpress/8.0.1 Node.js/22.22.0"
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

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

This file was deleted.

24 changes: 13 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,28 @@ on:
pull_request:
branches: [ master ]

jobs:
build:
permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
with:
node-version: ${{ matrix.node-version }}
persist-credentials: false

- name: Setup Node
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f
with:
node-version: 24

- name: Install dependencies
run: npm install

- name: Check lint
run: npm run lint

- name: Build
run: npm run build
33 changes: 23 additions & 10 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,35 @@ on:
pull_request:
branches: [ master ]

permissions:
contents: read
packages: write

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8

- name: Set image name
run: echo "IMAGE_NAME=ghcr.io/$GITHUB_REPOSITORY" >> $GITHUB_ENV

- name: Log into GitHub Container Registry
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: echo "$GITHUB_TOKEN" | docker login ghcr.io -u "$GITHUB_ACTOR" --password-stdin

- name: Get the package.json version
id: package-version
run: echo ::set-output name=version::$(jq -r .version package.json)
run: |
VERSION=$(jq -r .version package.json)
echo "IMAGE_TAG=$VERSION" >> $GITHUB_ENV

- name: Build the Docker image
run: docker build . --file Dockerfile --tag ghcr.io/${{ github.repository }}:${{ steps.package-version.outputs.version }}
run: docker build . --file Dockerfile --tag "$IMAGE_NAME:$IMAGE_TAG"

- name: Tag the Docker image
run: docker tag ghcr.io/${{ github.repository }}:${{ steps.package-version.outputs.version }} ghcr.io/${{ github.repository }}:latest
- name: Push the Docker image
run: docker push ghcr.io/${{ github.repository }} --all-tags

run: docker tag "$IMAGE_NAME:$IMAGE_TAG" "$IMAGE_NAME:latest"

- name: Push the Docker image
run: docker push "$IMAGE_NAME" --all-tags
36 changes: 36 additions & 0 deletions .github/workflows/eporner.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Eporner test

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
with:
persist-credentials: false

- name: Setup Node
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f
with:
node-version: 24

- name: Install dependencies
run: npm install

- name: Install Playwright browsers
run: npx playwright install --with-deps chromium

- name: Build
run: npm run build

- name: Eporner test
run: npm run test:eporner
19 changes: 15 additions & 4 deletions .github/workflows/playground.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,32 @@ on:
pull_request:
branches: [ master ]

permissions:
contents: write

jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
with:
persist-credentials: false

- name: Installing dependencies
- name: Setup Node
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f
with:
node-version: 24

- name: Install dependencies
run: npm install

- name: Generating docs
run: npm run build:apidoc

- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4.4.1
uses: JamesIves/github-pages-deploy-action@9d877eea73427180ae43cf98e8914934fe157a1a
with:
branch: gh-pages
folder: docs
26 changes: 16 additions & 10 deletions .github/workflows/pornhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,29 @@ on:
pull_request:
branches: [ master ]

jobs:
build:
permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
with:
persist-credentials: false

- name: Setup Node
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f
with:
node-version: ${{ matrix.node-version }}
node-version: 24

- name: Install dependencies
run: npm install

- name: Install Playwright browsers
run: npx playwright install --with-deps chromium

- name: Build
run: npm run build

Expand Down
26 changes: 16 additions & 10 deletions .github/workflows/redtube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,29 @@ on:
pull_request:
branches: [ master ]

jobs:
build:
permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
with:
persist-credentials: false

- name: Setup Node
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f
with:
node-version: ${{ matrix.node-version }}
node-version: 24

- name: Install dependencies
run: npm install

- name: Install Playwright browsers
run: npx playwright install --with-deps chromium

- name: Build
run: npm run build

Expand Down
24 changes: 14 additions & 10 deletions .github/workflows/status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,28 @@ on:
pull_request:
branches: [ master ]

jobs:
build:
permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
with:
persist-credentials: false

- name: Setup Node
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f
with:
node-version: ${{ matrix.node-version }}
node-version: 24

- name: Install dependencies
run: npm install

- name: Build
run: npm run build

- name: Check status code
run: npm run test
36 changes: 36 additions & 0 deletions .github/workflows/txxx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Txxx test

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
with:
persist-credentials: false

- name: Setup Node
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f
with:
node-version: 24

- name: Install dependencies
run: npm install

- name: Install Playwright browsers
run: npx playwright install --with-deps chromium

- name: Build
run: npm run build

- name: Txxx test
run: npm run test:txxx
Loading
Loading