XServerの無料VPSサービスの契約を自動的に延長するためのPlaywrightテストスクリプトです。手動での延長作業を自動化し、VPSサービスの継続利用を支援します。
不審なログイン時の認証
を「無効」に設定変更してください
https://secure.xserver.ne.jp/xapanel/myaccount/account/loginsecurity/input

docker pull ghcr.io/macaron/xserver-renew-test:latest
環境変数を指定してコンテナを実行
# 環境変数を直接指定
docker run --rm \
-e [email protected] \
-e XSERVER_PASSWORD=your-password \
ghcr.io/macaron/xserver-renew-test:latest
# .envファイルを使用
docker run --rm --env-file .env ghcr.io/macaron/xserver-renew-test:latest
リポジトリをクローン
git clone [email protected]:macaron/xserver-renew-test.git
cd xserver-renew-test
依存関係をインストール
npm install
環境変数を設定
cp .env.example .env
.env
ファイルを編集し、XServerのログイン情報を設定:
XSERVER_EMAIL=[email protected]
XSERVER_PASSWORD=your-password
Playwrightブラウザをインストール
npx playwright install
基本的なテスト実行
# 全テストを実行
npm test
# XServerテストのみ実行
npm run test:xserver
# ヘッド付きモードで実行(ブラウザが表示される)
npm run test:headed
# デバッグモードで実行
npm run test:debug
# テストレポートを表示
npm run test:report