Updated github actions versions #14
This file contains hidden or 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 All Tests | |
| on: | |
| push: | |
| branches: [master] | |
| jobs: | |
| Test-on-Chrome: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout GitCode | |
| uses: actions/[email protected] | |
| - name: Install dependencies | |
| uses: cypress-io/[email protected] | |
| with: | |
| runTests: false | |
| - name: Run Cypress Tests | |
| uses: cypress-io/[email protected] | |
| with: | |
| record: true | |
| parallel: true | |
| command: "npm run cy:chrome:headless" | |
| env: | |
| CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
| - name: Upload Videos to Build Artifacts | |
| uses: actions/[email protected] | |
| if: always() | |
| with: | |
| name: cypress-videos-chrome | |
| path: "${{ github.workspace }}/cypress/reports/videos/" | |
| - name: Upload Screenshots to Build Artifacts | |
| uses: actions/[email protected] | |
| if: failure() | |
| with: | |
| name: cypress-screenshots-chrome | |
| path: "${{ github.workspace }}/cypress/reports/screenshots/" | |
| - name: Upload Mocha report to Build Artifacts | |
| uses: actions/[email protected] | |
| if: always() | |
| with: | |
| name: cypress-mocha-chrome | |
| path: "${{ github.workspace }}/cypress/reports/html/" |