From bcf00a7c8a585e2a642f7caeea845d34255d234f Mon Sep 17 00:00:00 2001 From: highlander Date: Mon, 9 Mar 2026 14:23:26 -0600 Subject: [PATCH 1/3] ci: replace CircleCI with GitHub Actions Delete .circleci/config.yml and add .github/workflows/ci.yml. Runs build, lint, and unit tests on Node 16 for PRs and pushes to master. --- .circleci/config.yml | 83 ---------------------------------------- .github/workflows/ci.yml | 40 +++++++++++++++++++ 2 files changed, 40 insertions(+), 83 deletions(-) delete mode 100644 .circleci/config.yml create mode 100644 .github/workflows/ci.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 8a6f2cf8..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,83 +0,0 @@ -version: 2.1 - -orbs: - hdwallet: - executors: - node: - docker: - - image: cimg/node:16.20.2 - kkemu: - docker: - - image: cimg/node:16.20.2 - - image: kktech/kkemu:latest - jobs: - build: - description: Get deps and persist to workspace - executor: kkemu - environment: - JEST_JUNIT_OUTPUT: "test-results/js-test-results.xml" - steps: - - run: sudo apt-get update && sudo apt-get install libudev-dev libusb-dev libusb-1.0 libtool - - checkout - - run: - name: Authenticate with registry - command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc - - restore_cache: - name: Restore Yarn Package Cache - keys: - - cache-v6-{{ checksum "yarn.lock" }} - - run: yarn --frozen-lockfile --cache-folder ./.yarn-cache - - run: - no_output_timeout: 30m - name: Build packages - command: yarn build - - run: - name: Lint - command: yarn lint - - run: - name: Run unit tests - command: yarn test --runInBand --coverage=false - - run: - name: Run integration tests - command: yarn test:integration --runInBand - - store_test_results: - path: test-results - - persist_to_workspace: - root: . - paths: - - node_modules - - .npmrc - - .yarn-cache - - save_cache: - name: Save Yarn Package Cache - key: cache-v6-{{ checksum "yarn.lock" }} - paths: - - .yarn-cache - - run: - name: Ensure repo is clean from uncommitted changes, likely yarn.lock is out of date - command: git diff --quiet || exit 1 - release-packages: - description: Build and release local dependency packages - executor: node - steps: - - checkout - - attach_workspace: - at: . - - run: yarn --cache-folder .yarn-cache - - run: git status - - run: ./node_modules/.bin/lerna publish from-package --yes --no-verify-access -workflows: - version: 2 - Build and Release: - jobs: - - hdwallet/build: - name: build - - hdwallet/release-packages: - name: release-packages - requires: - - build - filters: - branches: - only: - - master - - v1-legacy diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..10673030 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,40 @@ +name: CI + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [16] + steps: + - uses: actions/checkout@v4 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: yarn + + - name: Install system dependencies + run: sudo apt-get update && sudo apt-get install -y libudev-dev libusb-dev libusb-1.0-0-dev libtool + + - name: Install dependencies + run: yarn --frozen-lockfile + + - name: Build + run: yarn build + + - name: Lint + run: yarn lint + + - name: Unit tests + run: yarn test --runInBand --coverage=false + + - name: Ensure no uncommitted changes + run: git diff --quiet || exit 1 From 28d7e624e495984ac835470abe08e5f3d360e517 Mon Sep 17 00:00:00 2001 From: highlander Date: Mon, 9 Mar 2026 14:32:56 -0600 Subject: [PATCH 2/3] fix: use Node 18 (deps require >=18, Node 16 is EOL) --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 10673030..e960fa2f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,14 +4,13 @@ on: push: branches: [master] pull_request: - branches: [master] jobs: build: runs-on: ubuntu-latest strategy: matrix: - node-version: [16] + node-version: [18] steps: - uses: actions/checkout@v4 From c9fd75cc08ba599d714166295473af4df640eac2 Mon Sep 17 00:00:00 2001 From: highlander Date: Mon, 9 Mar 2026 14:47:04 -0600 Subject: [PATCH 3/3] ci: retrigger checks after removing CircleCI webhook