Conversation
Co-authored-by: joe10832 <103850533+joe10832@users.noreply.github.com>
Copilot
AI
changed the title
@copilot-setup-stepsname: Continuous Integration
on:
push:
branches: [master]
pull_request:
branches: [master]
permissions:
contents: read
jobs:
ci:
runs-on: ubuntu-latest
environment: CI
steps:
- name: Harden Runn...
Add Continuous Integration workflow with Yarn support and security hardening
Sep 29, 2025
Contributor
There was a problem hiding this comment.
@ Copilot-setup-steps Pull Request Overview
This PR adds a comprehensive CI/CD pipeline to automate testing, linting, and building for the Onchain Test Kit project. The workflow implements security hardening and uses Yarn 4.9.2 for consistent package management across environments.
Key Changes:
- New GitHub Actions CI workflow that triggers on push/PR to master branch
- Security hardening with step-security/harden-runner and minimal permissions
- Automated pipeline with linting, building, and testing steps using Yarn commands
| - name: Enable Corepack and Enforce Yarn Version | ||
| run: | | ||
| corepack enable | ||
| yarn set version 4.9.2 |
There was a problem hiding this comment.
The yarn set version command modifies the project's .yarnrc.yml file, which could cause issues in CI. Since the project already specifies packageManager: yarn@4.9.2 in package.json, consider using corepack prepare yarn@4.9.2 --activate instead to respect the existing configuration without modifying project files.
Suggested change
| yarn set version 4.9.2 | |
| corepack prepare yarn@4.9.2 --activate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a comprehensive CI/CD pipeline to automate testing, linting, and building for the Onchain Test Kit project.
What's Added
New CI Workflow (
.github/workflows/ci.yml):masterbranchstep-security/harden-runnerCI Pipeline Steps
The workflow executes the following steps in order:
step-security/harden-runner@v2with egress policy auditingyarn installto install project dependenciesyarn lintusing Biome for code quality checksyarn buildto compile TypeScript to JavaScriptyarn testto run the Playwright test suiteBenefits
package.jsonTechnical Details
The workflow properly handles the project's Yarn configuration by:
packageManagerfieldAll commands (
lint,build,test) map directly to the scripts defined inpackage.json, ensuring consistency between local development and CI environments.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.