Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/wojtekmaj/react-hooks. A collection of React Hooks.
hooks react react-hooks
Something went wrong. Try again.
2.6 kB · 118 lines
YAML
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119name: CI
on: push: branches: ['*'] pull_request: branches: [main]
env: HUSKY: 0
jobs: lint: name: Static code analysis runs-on: ubuntu-24.04-arm
steps: - name: Checkout uses: actions/checkout@v6
- name: Setup Biome uses: biomejs/setup-biome@v2
- name: Run tests run: biome lint
typescript: name: Type checking runs-on: ubuntu-24.04-arm
steps: - name: Checkout uses: actions/checkout@v6
- name: Cache Yarn cache uses: actions/cache@v5 env: cache-name: yarn-cache with: path: ~/.yarn/berry/cache key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-${{ env.cache-name }}
- name: Use Node.js uses: actions/setup-node@v6 with: node-version: '24'
- name: Install Corepack run: npm install -g corepack
- name: Install dependencies run: yarn --immutable env: PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true
- name: Run type checking run: yarn tsc
format: name: Formatting runs-on: ubuntu-24.04-arm
steps: - name: Checkout uses: actions/checkout@v6
- name: Setup Biome uses: biomejs/setup-biome@v2
- name: Run formatting run: biome format
unit: name: Unit tests runs-on: ubuntu-24.04-arm
steps: - name: Checkout uses: actions/checkout@v6
- name: Cache Yarn cache uses: actions/cache@v5 env: cache-name: yarn-cache with: path: ~/.yarn/berry/cache key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-${{ env.cache-name }}
- name: Cache ~/.cache/ms-playwright id: playwright-cache uses: actions/cache@v5 env: cache-name: playwright-cache with: path: ~/.cache/ms-playwright key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
- name: Use Node.js uses: actions/setup-node@v6 with: node-version: '24'
- name: Install Corepack run: npm install -g corepack
- name: Install dependencies run: yarn --immutable
- name: Install Playwright browsers if: steps.playwright-cache.outputs.cache-hit != 'true' run: yarn playwright install chromium-headless-shell
- name: Run tests run: yarn unit