Skip to content

chore(deps): bump the npm_and_yarn group across 2 directories with 1 update #92

chore(deps): bump the npm_and_yarn group across 2 directories with 1 update

chore(deps): bump the npm_and_yarn group across 2 directories with 1 update #92

Workflow file for this run

name: Pull Request
on: [pull_request]
jobs:
check-readme:
name: 📖 Check readme for updates
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Compare package list against readme
run: |
PACKAGES="$(ls -1 packages | wc -l)"
README_PACKAGES="$(grep -Ff <(ls packages) README.md | wc -l)"
if [ "$PACKAGES" -eq "$README_PACKAGES" ]; then
echo "README correctly lists all packages."
exit 0
else
echo "Mismatch: Found $PACKAGES packages, but README lists $README_PACKAGES."
exit 1
fi
build:
name: 🏭 Build all packages
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch target
run: git fetch origin ${{ env.PR_BASE_REF }}
- name: Enable Corepack
run: corepack enable
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "yarn"
- name: Install
run: yarn install --frozen-lockfile
- name: Build all packages
run: yarn nx run-many -t build
- run: yarn nx affected:lint --base=origin/${{ env.PR_BASE_REF }} --parallel --max-parallel=3
env:
PR_BASE_REF: ${{ github.event.pull_request.base.ref }}
test:
name: 🧪 Run tests
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch target
run: git fetch origin ${{ env.PR_BASE_REF }}
- name: Enable Corepack
run: corepack enable
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "yarn"
- name: Install
run: yarn install --frozen-lockfile
- name: Build all packages
run: yarn nx run-many -t build
- name: Test affected packages
run: yarn nx affected:test --base=origin/${{ env.PR_BASE_REF }} --parallel --max-parallel=3
env:
PR_BASE_REF: ${{ github.event.pull_request.base.ref }}