bump cypress and workflow #95
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: ci | |
on: push | |
permissions: | |
contents: write | |
issues: write | |
pull-requests: write | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout π | |
uses: actions/checkout@v4 | |
- name: Install dependencies π¦ | |
# https://github.com/cypress-io/github-action | |
uses: cypress-io/github-action@v6 | |
with: | |
runTests: false | |
- name: Check types π§Ύ | |
run: npm run types | |
- name: Catch it.only π«΄ | |
run: npm run stop-only | |
- name: Run tests π§ͺ | |
uses: cypress-io/github-action@v6 | |
with: | |
install: false | |
start: npm start | |
test-merge-coverage: | |
runs-on: ubuntu-20.04 | |
env: | |
DEBUG: code-coverage | |
steps: | |
- name: Checkout π | |
uses: actions/checkout@v4 | |
- name: Install dependencies π§ͺ | |
# https://github.com/cypress-io/github-action | |
uses: cypress-io/github-action@v6 | |
with: | |
runTests: false | |
- name: Merge coverage tests | |
working-directory: examples/merge-coverage | |
run: | | |
npm run cy:run1 | |
npm run cy:run2 | |
npm run merge | |
release: | |
needs: [test, test-merge-coverage] | |
runs-on: ubuntu-22.04 | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- name: Checkout π | |
uses: actions/checkout@v4 | |
- name: Install only the semantic release π¦ | |
run: npm install semantic-release | |
- name: Semantic Release π | |
uses: cycjimmy/semantic-release-action@v4 | |
with: | |
branch: main | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |