Skip to content
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

feature/ci #45

Merged
merged 2 commits into from
Nov 12, 2021
Merged

feature/ci #45

merged 2 commits into from
Nov 12, 2021

Conversation

busticated
Copy link
Contributor

Description

Replace TravisCI w/ Github Actions to reenable publishing to npm

How to Test

  1. Pull down this branch (git pull && git checkout feature/ci)
  2. Reinstall dependencies (npm ci)
  3. Run tests (npm test)
  4. Review the outcome of CI in https://github.com/particle-iot/particle-usb/actions
  5. Review the docs for releasing

Outcome

Tests run successfully in Github Actions, docs are clear 👍

@busticated
Copy link
Contributor Author

@sergeuz note that CI on Node.js v14 is failing due to what looks like a dependency issue:

No prebuilt binaries found (target=14.18.1 runtime=node arch=x64 libc= platform=linux)

that variant is marked as "optional" (mirroring the original TravisCI configs) but probably worth addressing soon

Comment on lines +17 to +26
matrix:
experimental:
- false
node_version:
- 8
- 10
- 12
include:
- node_version: 14
experimental: true
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this could be further expanded to test across Arch + OS (example)

- name: Install npm v6
if: ${{ matrix.node_version >= 15 }}
run: |
npm install -g npm@6
Copy link
Member

Choose a reason for hiding this comment

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

Why do want npm v6 instead of what is bundled with Node 15 and higher? It's probably worth adding a comment about that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it’s b/c the shrinkwrap format changes w/ npm v7+ which causes npm ci to fail. my memory is fuzzy though - feel free to tweak it 👍

@sergeuz
Copy link
Member

sergeuz commented Nov 12, 2021

note that CI on Node.js v14 is failing due to what looks like a dependency issue

[email protected] doesn't seem to have prebuilt Linux binaries for Node 14 and higher. I'll test their latest release and update the dependencies in a separate PR 👍

@sergeuz sergeuz merged commit 980fef9 into master Nov 12, 2021
@sergeuz sergeuz deleted the feature/ci branch November 12, 2021 13:54
@busticated busticated mentioned this pull request Nov 30, 2021
@busticated busticated mentioned this pull request Jun 9, 2022
5 tasks
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