Skip to content

import order rule #3632

import order rule

import order rule #3632

name: Package updates
on:
push:
branches:
- master
paths:
- '*/**/package.json'
- '!*/**/node_modules/package.json'
- 'package.json'
- '!node_modules/package.json'
pull_request:
branches:
- master
- rel/**
paths:
- '*/**/package.json'
- '!*/**/node_modules/package.json'
- 'package.json'
- '!node_modules/package.json'
jobs:
unit-test-all:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup node:${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Fetch Base Ref
run: git fetch origin $GITHUB_BASE_REF
- name: Remove yarn.lock to simulate downstream installs
run: rm yarn.lock
- name: Install Packages
run: yarn install
- name: Unit test all
run: yarn unit-test
env:
BITGOJS_TEST_PASSWORD: ${{ secrets.BITGOJS_TEST_PASSWORD }}