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 XSERVER_EMAIL=your-email@example.com \ -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 git@github.com:macaron/xserver-renew-test.git cd xserver-renew-test依存関係をインストール
npm install環境変数を設定
cp .env.example .env.envファイルを編集し、XServerのログイン情報を設定:
XSERVER_EMAIL=your-email@example.com XSERVER_PASSWORD=your-passwordPlaywrightブラウザをインストール
npx playwright install基本的なテスト実行
# 全テストを実行 npm test # XServerテストのみ実行 npm run test:xserver # ヘッド付きモードで実行(ブラウザが表示される) npm run test:headed # デバッグモードで実行 npm run test:debug # テストレポートを表示 npm run test:report