mirror of
https://github.com/meshtastic/web.git
synced 2026-06-11 15:04:59 -04:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
63 lines
1.4 KiB
YAML
63 lines
1.4 KiB
YAML
name: Pull Request CI
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened, ready_for_review]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: pr-${{ github.event.pull_request.number }}-ci
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
CI: true
|
|
|
|
jobs:
|
|
build-and-package:
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.event.pull_request.draft == false }}
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 10.32.1
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: 24
|
|
cache: pnpm
|
|
cache-dependency-path: pnpm-lock.yaml
|
|
|
|
- name: Debug dependency state
|
|
run: |
|
|
set -euo pipefail
|
|
echo "GITHUB_SHA=${GITHUB_SHA}"
|
|
git log --oneline -1
|
|
pnpm --version
|
|
node --version
|
|
grep -n "meshtastic__protobufs" pnpm-lock.yaml || true
|
|
grep -n "2.7.18" pnpm-lock.yaml || true
|
|
grep -n "2.7.20" pnpm-lock.yaml || true
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Run linter
|
|
run: pnpm run lint
|
|
|
|
- name: Check formatter
|
|
run: pnpm run check
|
|
|
|
- name: Run tests
|
|
run: pnpm run test
|
|
|
|
- name: Build web package
|
|
run: pnpm --filter "./packages/web" run build
|