chore(deps): update dependency cypress to v15 #163
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: ci | |
on: push | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout π | |
uses: actions/checkout@v3 | |
- name: Run tests π§ͺ | |
# https://github.com/cypress-io/github-action | |
uses: cypress-io/github-action@v4 | |
- uses: actions/upload-artifact@v2 | |
name: Store any screenshots πΌ | |
if: failure() | |
with: | |
name: cypress-screenshots | |
path: cypress/screenshots | |
test-cypress-v9: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout π | |
uses: actions/checkout@v3 | |
- name: Install top dependencies π¦ | |
# https://github.com/cypress-io/github-action | |
uses: cypress-io/github-action@v4 | |
with: | |
runTests: false | |
- name: Run Cypress v9 tests π§ͺ | |
uses: cypress-io/github-action@v4 | |
with: | |
working-directory: cypress-v9 | |
- uses: actions/upload-artifact@v2 | |
name: Store any v9 screenshots πΌ | |
if: failure() | |
with: | |
name: cypress-screenshots-v9 | |
path: cypress-v9/cypress/screenshots | |
release: | |
needs: [test, test-cypress-v9] | |
runs-on: ubuntu-20.04 | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- name: Checkout π | |
uses: actions/checkout@v3 | |
- name: Install only the semantic release π¦ | |
run: npm install semantic-release | |
- name: Semantic Release π | |
uses: cycjimmy/semantic-release-action@v2 | |
with: | |
branch: main | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |