LoginSignup
0
0

More than 1 year has passed since last update.

GitHub Action上のCypress実行時にvideoを保存しない

Last updated at Posted at 2021-07-22

GitHub ActionでCypress実行してるけど動画やスクショは普段いらねーよ圧縮時間の無駄だよという人のために。

withでconfigパラメータを指定します。

  • screenshotOnRunFailure=false->エラー時のスクリーンショットを保存しない
  • video=false->録画しない
name: Cypress tests

on: [push]

jobs:
  cypress-run:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout
      uses: actions/checkout@v2

    - name: Cypress run
      uses: cypress-io/github-action@v2
      with:
        build: npm run build
        start: npm start
        config: screenshotOnRunFailure=false,video=false

参考
https://github.com/marketplace/actions/cypress-io#config
https://docs.cypress.io/guides/guides/screenshots-and-videos

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0