chore(deps): bump nuxt from 2.15.8 to 3.12.4 #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Test E2E | |
on: | |
# push: | |
# branches: | |
# - release | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test-e2e: | |
runs-on: ubuntu-latest | |
steps: | |
# action clones the repository into this environment, | |
# making your code available for the workflow steps that follow. | |
- name: Checkout Repository Test E2E | |
uses: actions/checkout@v4 | |
with: | |
repository: NitichaiSawangsai/cypress-ex1 # เปลี่ยนเป็น repository | |
ref: master # ตรวจสอบจาก branch | |
token: ${{ github.token }} # ใช้ Personal Access Token ที่มีสิทธิ์ในการอ่าน Repository | |
# Install NPM dependencies, cache them correctly | |
# and run all Cypress tests | |
# https://github.com/cypress-io/github-action | |
- name: Cypress run | |
uses: cypress-io/github-action@v6 | |
with: | |
browser: chrome | |
record: true | |
env: | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_KEY }} | |
CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }} | |
# after the test run completes | |
# store videos and any screenshots | |
# NOTE: screenshots will be generated only if E2E test failed | |
# thus we store screenshots only on failures | |
# Alternative: create and commit an empty cypress/screenshots folder | |
# to always have something to upload | |
- uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: cypress-screenshots | |
path: cypress/screenshots | |
# Test run video was always captured, so this action uses "always()" condition | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: cypress-videos | |
path: cypress/videos | |