Skip to content

Add pull request lint workflow#26

Merged
joshunrau merged 5 commits into
mainfrom
copilot/add-github-actions-workflow
May 30, 2026
Merged

Add pull request lint workflow#26
joshunrau merged 5 commits into
mainfrom
copilot/add-github-actions-workflow

Conversation

Copilot AI commented May 29, 2026

Copy link
Copy Markdown
Contributor

This adds a GitHub Actions workflow to run linting for every pull request. The workflow reads the pnpm version from package.json and uses read-only token permissions.

  • Workflow

    • adds .github/workflows/lint.yml
    • triggers on pull_request
    • runs a single lint job on ubuntu-latest
  • Toolchain setup

    • configures pnpm via the packageManager field in package.json
    • sets up the latest Node.js LTS version with pnpm cache enabled
    • installs dependencies via pnpm install --frozen-lockfile
  • Security hardening

    • scopes GITHUB_TOKEN permissions to:
      permissions:
        contents: read
  • Lint execution

    • runs type-checking and ESLint directly without auto-fixing, so pull requests fail when violations exist:
      - name: Run lint
        run: pnpm exec tsc && pnpm exec eslint lib

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds the repository’s first GitHub Actions workflow to run lint/type-checking on pull requests, operationalizing the existing pnpm lint contributor guidance.

Changes:

  • Adds a pull_request workflow named Lint.
  • Sets up pnpm 10.6.3 and Node.js 22 with pnpm caching.
  • Installs dependencies with a frozen lockfile and runs linting.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/lint.yml Outdated
Comment thread .github/workflows/lint.yml Outdated
Comment thread .github/workflows/lint.yml Outdated
Comment thread .github/workflows/lint.yml Outdated
gdevenyi and others added 2 commits May 30, 2026 14:32
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@gdevenyi gdevenyi marked this pull request as ready for review May 30, 2026 21:17
@gdevenyi gdevenyi requested review from Copilot and joshunrau May 30, 2026 21:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@joshunrau joshunrau merged commit 9ad8de5 into main May 30, 2026
2 checks passed
@joshunrau joshunrau deleted the copilot/add-github-actions-workflow branch June 4, 2026 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants