Skip to content

Add GitHub Actions workflow for running tests#3

Merged
SamehElalfi merged 4 commits intomainfrom
copilot/add-github-action-workflow
Nov 27, 2025
Merged

Add GitHub Actions workflow for running tests#3
SamehElalfi merged 4 commits intomainfrom
copilot/add-github-action-workflow

Conversation

Copy link
Contributor

Copilot AI commented Nov 27, 2025

Adds CI workflow to run the test suite on push/PR to main and dev branches.

Changes

  • Create .github/workflows/test.yml with Node.js 20, yarn caching, and test execution
  • Set explicit permissions: contents: read for least-privilege security

Workflow

- uses: actions/checkout@v4
- uses: actions/setup-node@v4
  with:
    node-version: '20'
    cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn test problems/**/*.test.ts

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com//advisories
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

add a github action workflow that will run test files to check if all tests are passing

note: the tests are using Node.js runners with typescript and yarn. you can use "yarn test" to run all tests


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits November 27, 2025 01:23
Co-authored-by: SamehElalfi <31380068+SamehElalfi@users.noreply.github.com>
Co-authored-by: SamehElalfi <31380068+SamehElalfi@users.noreply.github.com>
Copilot AI changed the title [WIP] Add GitHub Action workflow for running tests Add GitHub Actions workflow for running tests Nov 27, 2025
Copilot AI requested a review from SamehElalfi November 27, 2025 01:27
@SamehElalfi SamehElalfi marked this pull request as ready for review November 27, 2025 01:29
@SamehElalfi SamehElalfi merged commit 86bc325 into main Nov 27, 2025
1 check passed
SamehElalfi added a commit that referenced this pull request Dec 1, 2025
SamehElalfi added a commit that referenced this pull request Dec 1, 2025
…tring

feat: add solution and tests for LeetCode Problem #3 - Longest Substr…
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.

2 participants