# SPDX-FileCopyrightText: 2025 Contributors to the CitrineOS Project # # SPDX-License-Identifier: Apache-2.0 name: Linter on: pull_request: concurrency: # Rerun check when the PR is updated, https://stackoverflow.com/a/72408109 group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true jobs: linter: name: Linter runs-on: ubuntu-22.04 # todo: to prevent needing to run npm i we can have our own image where everything is installed steps: - name: Checkout uses: actions/checkout@v4 - name: Setup pnpm uses: pnpm/action-setup@v4 with: version: 10.19.0 - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '24.16.0' cache: 'pnpm' - name: Install dependencies run: pnpm install - name: Lint run: pnpm run lint