From d288d5b74bd75c650424be04ac0b1517478e7351 Mon Sep 17 00:00:00 2001 From: cksrb63 Date: Sat, 2 Mar 2024 14:47:53 +0900 Subject: [PATCH] Test: Cypress GitHub Actions CI --- .github/workflows/cypress.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/cypress.yml diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml new file mode 100644 index 00000000..d12c5911 --- /dev/null +++ b/.github/workflows/cypress.yml @@ -0,0 +1,27 @@ +name: Cypress E2E Test + +on: push + +jobs: + cypress-run: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - name: Install pnpm + run: npm install -g pnpm + - name: npm ci + run: pnpm install --frozen-lockfile + - name: Cypress run + uses: cypress-io/github-action@v6 + with: + build: pnpm run build + start: pnpm run dev + env: + id: ${{ secrets.TESTING_ID }} + pw: ${{ secrets.TESTING_PW }} + host: ${{ secrets.TESTING_HOST }}