Skip to content

lint(stories): disable temporarely & locally react-hooks/rules-of-hoo… #4810

lint(stories): disable temporarely & locally react-hooks/rules-of-hoo…

lint(stories): disable temporarely & locally react-hooks/rules-of-hoo… #4810

Workflow file for this run

name: Check
on:
push:
branches: ['main']
pull_request:
branches: ['main']
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
lint:
name: Lint
if: ${{ !startsWith(github.head_ref, 'ci-release-v') }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 100
- name: Setup
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install
uses: ./.github/actions/install
- name: Lint commits (last 100)
run: yarn commitlint --from HEAD~49 --to HEAD -V
- name: Lint code
run: yarn test:lint
type:
name: Type
if: ${{ !startsWith(github.head_ref, 'ci-release-v') }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install
uses: ./.github/actions/install
- name: Type
run: yarn test:type
test_unit:
name: Unit Test
if: ${{ !startsWith(github.head_ref, 'ci-release-v') }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install
uses: ./.github/actions/install
- name: Test
run: yarn test:unit --coverage
- name: Upload coverage
uses: codecov/codecov-action@v4
with:
flags: unit
token: ${{ secrets.CODECOV_TOKEN }}