mirror of
https://github.com/CorentinTh/it-tools.git
synced 2026-11-18 14:13:21 +00:00
Phase 0 of the dependency upgrade plan in destan/toolbox#4. - Pin Node 26 in .nvmrc, the four workflows, and the Dockerfile. Node 22 entered maintenance on 2025-10-21. Node 26 is the active LTS. - Change packageManager from pnpm@9.11.0 to pnpm@9.15.9. - Replace `corepack enable` with pnpm/action-setup@v6.1.1, which reads the pnpm version from packageManager. The Node 26 distribution does not include corepack. The step runs before actions/setup-node, because `cache: 'pnpm'` needs pnpm on the path. - Pin pnpm 9.15.9 in the Dockerfile. The unpinned `npm install -g pnpm` installed the npm `latest` dist-tag (12.16.1). - Update the GitHub Actions to their latest tags: - actions/checkout: the v4-commented SHA to the v7.0.1 commit SHA - actions/setup-node: v3 to v7.1.0 - actions/cache: v3 to v6.1.0 - docker/login-action: v3 to v4.7.0 - docker/setup-qemu-action: v3 to v4.4.0 - docker/setup-buildx-action: v3 to v4.4.1 - docker/build-push-action: v5 to v7.4.0 - softprops/action-gh-release: v1 to v3.0.3 The workflows set every action input that they used before. Each input still exists in the action.yml of the target tag. Claude-Session: https://claude.ai/code/session_01PEUYi2Ve581PMqxiDbPpuS Co-authored-by: Claude <noreply@anthropic.com>
34 lines
607 B
YAML
34 lines
607 B
YAML
name: ci
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
ci:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- uses: pnpm/action-setup@v6.1.1
|
|
- uses: actions/setup-node@v7.1.0
|
|
with:
|
|
node-version: 26
|
|
cache: 'pnpm'
|
|
|
|
- name: Install dependencies
|
|
run: pnpm i
|
|
|
|
- name: Run linters
|
|
run: pnpm lint
|
|
|
|
- name: Run unit test
|
|
run: pnpm test
|
|
|
|
- name: Type check
|
|
run: pnpm typecheck
|
|
|
|
- name: Build the app
|
|
run: pnpm build
|