Skip to content

Commit

Permalink
chore(repo): use origin/main as a comparator for filtering tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shellscape committed Jul 15, 2021
1 parent 348764e commit f493831
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/node-windows.yml
Expand Up @@ -27,6 +27,9 @@ jobs:
- name: Checkout Commit
uses: actions/checkout@v1

- name: Checkout Master
run: git branch -f master origin/master

- name: Setup Node
uses: actions/setup-node@v1
with:
Expand All @@ -39,4 +42,4 @@ jobs:
run: pnpm install --ignore-scripts

- name: run tests
run: pnpm ci:test --filter ...[${{ github.sha }}]
run: pnpm ci:test --filter "...[origin/master]"
5 changes: 4 additions & 1 deletion .github/workflows/validate.yml
Expand Up @@ -30,6 +30,9 @@ jobs:
with:
node-version: ${{ matrix.node }}

- name: Checkout Master
run: git branch -f master origin/master

- name: Install pnpm
run: npm install pnpm -g

Expand All @@ -56,4 +59,4 @@ jobs:
run: pnpm lint:js

- name: Run Tests
run: pnpm ci:coverage --filter ...[${{ github.sha }}]
run: pnpm ci:coverage --filter "...[origin/master]"

0 comments on commit f493831

Please sign in to comment.