Skip to content

chore(dev-deps): to latest #1815

chore(dev-deps): to latest

chore(dev-deps): to latest #1815

Workflow file for this run

name: CI-packages
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
on:
push:
branches:
- dev
- main
paths:
- 'packages/**'
- 'yarn.lock'
- '.yarnrc.yml'
- '.prettier*.*'
- '*.base.json'
- '*.base.js'
- '.prettier*.*'
- '.github/actions/**'
- '.github/workflows/**'
pull_request:
types:
- opened
- synchronize
- reopened
paths:
- 'packages/**'
- 'yarn.lock'
- '.yarnrc.yml'
- '*.base.json'
- '*.base.js'
- '.prettier*.*'
- '.github/actions/**'
- '.github/workflows/**'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@v4
with:
# Fetch all git history so that yarn workspaces --since can compare with the correct commits
# @link https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches
fetch-depth: 0
- name: ⚙️ Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: 📥 Monorepo install
uses: ./.github/actions/yarn-nm-install
with:
enable-corepack: 'true'
- name: ♻️ Restore packages cache
uses: actions/cache@v4
with:
path: |
${{ github.workspace }}/.cache
${{ github.workspace }}/**/tsconfig.tsbuildinfo
key: ${{ runner.os }}-packages-cache-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('packages/**.[jt]sx?', 'packages/**.json') }}
restore-keys: |
${{ runner.os }}-packages-cache-${{ hashFiles('**/yarn.lock') }}-
- name: 🕵️ Typecheck
run: yarn workspaces foreach -tv --include '@belgattitude/*' --since=origin/main --recursive run typecheck
- name: 🔬 ESLint checks
run: yarn workspaces foreach -tv --include '@belgattitude/*' --since=origin/main --recursive run lint
- name: 🧪 Unit tests changed packages
run: yarn workspaces foreach -tv --include '@belgattitude/*' --since=origin/main --recursive run test-unit
- name: 🏗 Run build for changed packages
run: yarn workspaces foreach -tv --include '@belgattitude/*' --since=origin/main --recursive run build
- name: 📐 Check build for size-limits
run: yarn workspaces foreach -tv --include '@belgattitude/*' --since=origin/main --recursive run check-size
- name: 🛟 Check build ecmascript compliance
run: yarn workspaces foreach -tv --include '@belgattitude/*' --since=origin/main --recursive run check-dist