Skip to content

chore(test): add coverage c8 for vitest #22

chore(test): add coverage c8 for vitest

chore(test): add coverage c8 for vitest #22

Workflow file for this run

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