Skip to content

Commit

Permalink
Merge pull request #5499 from BitGo/BTC-0-fix-unit-test-changed
Browse files Browse the repository at this point in the history
feat(ci): make unit-test-changed work on out of date branches
  • Loading branch information
davidkaplanbitgo authored Feb 12, 2025
2 parents 5fbf436 + b06b1cb commit 9901223
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

- name: Setup node:${{ matrix.node-version }}
uses: actions/setup-node@v2
Expand Down Expand Up @@ -86,7 +87,7 @@ jobs:
fail-fast: false
matrix:
check: ['lint', 'format', 'commit-lint', 'dependencies']

steps:
- uses: actions/checkout@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"audit-dev": "yarn audit --group devDependencies ; test $? -lt 8",
"lint": "lerna run lint --stream",
"lint-changed": "lerna run lint --since origin/${GITHUB_REPO_BRANCH:-master}..HEAD --stream",
"unit-test-changed": "lerna run unit-test --since origin/${GITHUB_REPO_BRANCH:-master}..HEAD --stream",
"unit-test-changed": "lerna run unit-test --since $(git merge-base HEAD~ origin/${GITHUB_REPO_BRANCH:-master}) --stream",
"browser-tests": "lerna run --scope bitgo compile && lerna run --scope bitgo browser-test && lerna run --scope @bitgo/web-demo test",
"gen-coverage-changed": "lerna run gen-coverage --since origin/${GITHUB_REPO_BRANCH:-master}..HEAD --stream --parallel",
"coverage-changed": "lerna run upload-coverage --since origin/${GITHUB_REPO_BRANCH:-master}..HEAD --stream --parallel --",
Expand Down

0 comments on commit 9901223

Please sign in to comment.