chore(test): add coverage c8 for vitest #22
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 Merge | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: ⚙️ Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 18.16.0 | |
- name: 🧠 Cache node_modules | |
uses: actions/cache@v2 | |
id: yarn-cache | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-yarn-%{{ hashFiles('**/yarn.lock')}} | |
restore-keys: / | |
${{ runner.os }}-yarn- | |
- name: 📦️ Install dependencies | |
if: steps.yarn-cache.outputs.cache-hit != 'true' | |
run: yarn --frozen-lockfile | |
- name: 🧪 Run Jest tests | |
run: yarn test | |
- name: 👘 Run linter | |
run: yarn lint | |
- name: 🤖 Cypress run | |
uses: cypress-io/github-action@v5.0.5 | |
with: | |
build: npm run build | |
start: npm start |