Skip to content

build(deps-dev): bump husky from 8.0.3 to 9.0.11 #741

build(deps-dev): bump husky from 8.0.3 to 9.0.11

build(deps-dev): bump husky from 8.0.3 to 9.0.11 #741

name: Build and Test
on:
push:
branches:
- main
paths:
- '**.tsx?'
- '**.jsx?'
pull_request:
branches:
- main
- v3.x
jobs:
test:
name: Running vitest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js LTS
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Dependencies
run: yarn install
- name: Build
run: yarn build
- name: Test with Coverage
run: yarn coverage
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}