Skip to content

[RENOVATE-BOT] Update dependency vitest to v2 #250

[RENOVATE-BOT] Update dependency vitest to v2

[RENOVATE-BOT] Update dependency vitest to v2 #250

Workflow file for this run

name: CI workflow
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
on:
pull_request:
branches:
- '*'
workflow_dispatch:
jobs:
init:
name: Initial Common Steps
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Cache dependencies
id: cache
uses: actions/cache@v4
with:
path: node_modules
key: deps-node-modules-${{ hashFiles('**/pnpm-lock.yaml') }}
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 7.1.5
run_install: false
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: pnpm install
test:
name: Test
runs-on: ubuntu-latest
needs: init
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Cache dependencies
id: cache
uses: actions/cache@v4
with:
path: node_modules
key: deps-node-modules-${{ hashFiles('**/pnpm-lock.yaml') }}
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 7.1.5
run_install: false
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: pnpm install
- name: Unit Test
run: pnpm test:unit
lint:
name: Lint
runs-on: ubuntu-latest
needs: init
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Cache dependencies
id: cache
uses: actions/cache@v4
with:
path: node_modules
key: deps-node-modules-${{ hashFiles('**/pnpm-lock.yaml') }}
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 7.1.5
run_install: false
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: pnpm install
- name: lint
run: npx eslint@7.32.0 --no-error-on-unmatched-pattern -c .eslintrc.cjs $(git diff --name-only --relative --diff-filter=ACMRTUXB HEAD~1 | grep -E ".(js|jsx|ts|tsx)$")
knip-scan:
name: Knip Scan
runs-on: ubuntu-latest
needs: init
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Cache dependencies
id: cache
uses: actions/cache@v4
with:
path: node_modules
key: deps-node-modules-${{ hashFiles('**/pnpm-lock.yaml') }}
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 7.1.5
run_install: false
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: pnpm install
- name: knip
env:
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
run: |
pnpm knip > knipScanResult.txt 2>&1
node ./scripts/knipScanReporter.js