Skip to content

chore: remove corepack integrity keys workaround no longer needed in … #4

chore: remove corepack integrity keys workaround no longer needed in …

chore: remove corepack integrity keys workaround no longer needed in … #4

Workflow file for this run

name: Validate
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}-validate"
cancel-in-progress: true
on:
workflow_dispatch:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
validate:
name: Validate
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
fail-fast: true
matrix:
node-version: [22.x]
os: [ubuntu-22.04]
steps:
- name: Checkout repository
uses: actions/checkout@v4
# Necessary because `actions/setup-node` does not yet support `corepack`.
# @see https://github.com/actions/setup-node/issues/531
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Format
run: pnpm run format:check
- name: Lint
run: pnpm run lint:check
- name: Typecheck
run: pnpm run types:check
# Not running tests in CI/CD because they actually talk to the redmine api.
# - name: Test
# run: pnpm run test
build-deploy:
name: Build and deploy
if: ${{ github.event_name == 'push' }}
needs: [validate]
uses: ./.github/workflows/build-deploy.yml
secrets: inherit
# https://docs.github.com/en/actions/using-workflows/reusing-workflows#access-and-permissions
permissions:
contents: read
packages: write