From d21ae6f514da37f1908e03309c726e762b93fecd Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Wed, 19 Aug 2020 17:28:46 +0200 Subject: [PATCH] use cypress github action --- .github/workflows/main.yml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 08eec4e0..34d07667 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,10 +11,31 @@ jobs: node-version: [14.x] steps: + - uses: actions/checkout@v2.3.2 + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v2.1.1 with: node-version: ${{ matrix.node-version }} - - run: yarn install - - run: yarn run startandtest + + - name: Install dependencies + run: yarn install + + - name: Cypress run + uses: cypress-io/github-action@v2 + with: + browser: chrome + command: yarn run startandtest + + - uses: actions/upload-artifact@v1 + if: failure() + with: + name: cypress-screenshots + path: cypress/screenshots + + - uses: actions/upload-artifact@v1 + if: always() + with: + name: cypress-videos + path: cypress/videos