mirror of
https://github.com/sharevb/it-tools.git
synced 2026-12-04 10:24:46 +03:00
ci: move to pnpm 12, pnpm/setup v3 and faster, pinned CI
pnpm 12.6.0 is declared in devEngines.packageManager instead of packageManager, so pnpm/setup, the Dockerfile and local installs all pick the same version; the lockfile records the resolved binary. Every workflow moves to pnpm/setup v3, and the Vercel workflows gain a setup step so `vercel build` runs with that pnpm rather than whatever is on the runner. CI time: - ci runs format check, lint, unit tests, typecheck and build as parallel steps instead of one after another. - E2E builds the app once and shares dist with the three browser jobs instead of rebuilding it in each. - ci and E2E cancel superseded runs on the same ref. - The Docker latest/baseurl workflows no longer repeat ci's checks. They run on workflow_run after ci succeeds for a push, and build the commit ci tested. Runners are pinned to ubuntu-26.04-arm. CodeQL stays on x64 (ubuntu-26.04): only the x64 image ships the CodeQL bundle in its tool cache. The Playwright cache key now includes the runner architecture. Every action is pinned to its latest release by commit SHA with a version comment, the Dockerfile base images by digest, and the pnpm and Vercel CLI installs to exact versions, matching the Renovate presets already enabled (helpers:pinGitHubActionDigests, docker:pinDigests). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017s2w39tKNdBdD8kyfThuLy
This commit is contained in:
1 parent
0f4c7b1d68
commit
c23c6d0263
13 files changed
+332
-143
No files matched your search
@@ -21,7 +21,9 @@ on:
|
||||
jobs:
|
||||
analyze:
|
||||
name: Analyze
|
||||
runs-on: ubuntu-latest
|
||||
# x64 on purpose: the x64 runner image ships the CodeQL bundle in its tool
|
||||
# cache, the arm64 image does not, so arm would download it on every run.
|
||||
runs-on: ubuntu-26.04
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
@@ -37,11 +39,9 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v7.0.0
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v4.36.3
|
||||
uses: github/codeql-action/init@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||
@@ -55,9 +55,7 @@ jobs:
|
||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||
# If this step fails, then you should remove it and run the build manually (see below)
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v4.36.3
|
||||
|
||||
# ℹ️ Command-line programs to run using the OS shell.
|
||||
uses: github/codeql-action/autobuild@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2
|
||||
# 📚 https://git.io/JvXDl
|
||||
|
||||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
||||
@@ -69,4 +67,4 @@ jobs:
|
||||
# make release
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v4.36.3
|
||||
uses: github/codeql-action/analyze@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2
|
||||
Reference in new issue
Block a user