chore(deps): bump brace-expansion from 1.1.11 to 1.1.12 in the npm_and_yarn group #217
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
jobs: | |
lint-format: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repository | |
- name: Checkout Code | |
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.5.4 | |
# Set up Node.js | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '22.14.0' | |
# Cache pnpm dependencies | |
- name: Cache pnpm dependencies | |
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 | |
with: | |
path: | | |
~/.pnpm-store | |
~/.local/share/pnpm/store | |
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm- | |
# Install pnpm | |
- name: Install pnpm | |
run: npm install -g pnpm | |
# Install dependencies | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
# Run linting | |
- name: Run lint | |
run: pnpm lint | |
build-and-test: | |
runs-on: ubuntu-latest | |
needs: lint-format | |
steps: | |
# Checkout the repository | |
- name: Checkout Code | |
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.5.4 | |
# Set up Node.js | |
- name: Setup Node.js | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version: '22.14.0' | |
# Restore pnpm dependencies from cache | |
- name: Restore pnpm dependencies from cache | |
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 | |
with: | |
path: | | |
~/.pnpm-store | |
~/.local/share/pnpm/store | |
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm- | |
# Install pnpm | |
- name: Install pnpm | |
run: npm install -g pnpm | |
# Install dependencies (this will be fast if cache is hit) | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
# Build the project | |
- name: Build | |
run: pnpm generate | |
# Run tests | |
- name: Run tests | |
run: pnpm test |