Skip to content

chore: Add GitHub Workflow #131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 7, 2025
Merged

chore: Add GitHub Workflow #131

merged 3 commits into from
May 7, 2025

Conversation

seanpoulter
Copy link
Contributor

@seanpoulter seanpoulter commented Apr 27, 2025

This pull request adds a GitHub Workflow similar to the Azure DevOps Pipeline.

@seanpoulter seanpoulter requested a review from Copilot April 27, 2025 17:46
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request adds a new GitHub Workflow to build, test, and publish a Node.js project similarly to an Azure DevOps Pipeline.

  • Added a workflow file (.github/workflows/ci.yml) that defines jobs for checking out code, installing Node.js, building, testing, and publishing the package.
  • Configured additional steps for uploading test results, code coverage, and the npm package tarball.

@seanpoulter seanpoulter requested a review from Copilot April 27, 2025 21:14
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request adds a GitHub Workflow for CI/CD while updating the SauceLabs configuration in the Karma test configuration file.

  • Update SauceLabs settings in karma.conf.js (platform, version, platformVersion, appiumVersion).
  • Introduce a new GitHub Workflow in .github/workflows/ci.yml for building, testing, and publishing.

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
karma.conf.js Updated SauceLabs configuration for Safari and iOS support
.github/workflows/ci.yml Added a new GitHub Workflow to replace the Azure DevOps pipeline
Files not reviewed (1)
  • package.json: Language not supported
Comments suppressed due to low confidence (1)

karma.conf.js:99

  • [nitpick] The prefix 'XXX' in the browser configuration name appears to be a placeholder; consider renaming to a more descriptive identifier.
XXXsl_android_chrome: {

@seanpoulter seanpoulter changed the title chore: Add GitHub Workflow chore: Add GitHub Workflow and fix Azure DevOps pipeline Apr 27, 2025
@seanpoulter seanpoulter requested a review from jcubic April 27, 2025 21:17
Copy link
Member

@jcubic jcubic left a comment

Choose a reason for hiding this comment

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

Looks good, I will add the secrets tomorrow.

@seanpoulter seanpoulter changed the title chore: Add GitHub Workflow and fix Azure DevOps pipeline chore: Add GitHub Workflow Apr 27, 2025
@seanpoulter
Copy link
Contributor Author

I split out the change to fix the Azure DevOps pipeline into #132. There's no rush to set up the secrets.

@seanpoulter seanpoulter force-pushed the build-in-gh-workflow branch from 060925b to f909fef Compare April 28, 2025 12:26
@seanpoulter seanpoulter force-pushed the build-in-gh-workflow branch from f909fef to 9ddd1bf Compare April 28, 2025 23:01
@seanpoulter seanpoulter requested a review from Copilot April 28, 2025 23:01
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request adds a GitHub Workflow to build, test, and publish the project, similar to an existing Azure DevOps pipeline.

  • Introduces a new CI workflow with steps for checkout, Node.js setup, dependency installation, building and testing the application, packaging artifacts, and publishing to npm.

@seanpoulter
Copy link
Contributor Author

The secrets worked! Thanks @jcubic! 👏

This is ready for one last look and we can merge. Unfortunately a lightning-fs-PR run failed due to Safari on iOS being unavailable, and then passed on a retry. That doesn't build confidence.

@seanpoulter seanpoulter requested review from Copilot and jcubic April 29, 2025 04:04
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request adds a new GitHub Actions workflow for building, testing, and packaging a Node.js project, similar to the existing Azure DevOps Pipeline.

  • Adds a continuous integration workflow for pull requests with steps to install Node.js, install dependencies, run build/tests, and package & publish artifacts.
  • Implements concurrency and conditional steps for artifact uploads and publishing to npm.

Comment on lines +55 to +62
npm pack

- name: Save npm-tarball.tgz
if: ${{ !cancelled() && !github.event.pull_request.head.repo.fork }}
uses: actions/upload-artifact@v4
with:
name: npm-tarball.tgz
path: isomorphic-git-lightning-fs-0.0.0-development.tgz
Copy link
Preview

Copilot AI Apr 29, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider parameterizing or verifying the hardcoded tarball file name so that it matches the package version dynamically when changes occur.

Suggested change
npm pack
- name: Save npm-tarball.tgz
if: ${{ !cancelled() && !github.event.pull_request.head.repo.fork }}
uses: actions/upload-artifact@v4
with:
name: npm-tarball.tgz
path: isomorphic-git-lightning-fs-0.0.0-development.tgz
TAR_NAME=$(npm pack | tail -n 1)
echo "TAR_NAME=$TAR_NAME" >> $GITHUB_ENV
- name: Save npm-tarball.tgz
if: ${{ !cancelled() && !github.event.pull_request.head.repo.fork }}
uses: actions/upload-artifact@v4
with:
name: npm-tarball.tgz
path: ${{ env.TAR_NAME }}

Copilot uses AI. Check for mistakes.

@jcubic
Copy link
Member

jcubic commented Apr 29, 2025

Looks good, we need to get rid of the Copilot SPAM. Do you know how to disable this thing?

@jcubic
Copy link
Member

jcubic commented Apr 29, 2025

Oh, just noticed that you added request for it. If you like to fix those issue he reported, go ahead.

@seanpoulter
Copy link
Contributor Author

Looks good, we need to get rid of the Copilot SPAM. Do you know how to disable this thing?

Sorry, I've been experimenting with it and ignoring it the noise. Sometimes it adds value. It'd probably be better to get the feedback on your local machine instead of making the PR comments a mess.

@seanpoulter seanpoulter merged commit f8a3439 into main May 7, 2025
2 checks passed
@seanpoulter seanpoulter deleted the build-in-gh-workflow branch May 7, 2025 10:42
@isomorphic-git-bot
Copy link
Member

🎉 This PR is included in version 4.6.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants