-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: switching to an affected strategy (#5215)
* switiching to an affected strategy * updating base affected option for ci and ci-v3 workflows * Update .github/workflows/ci-v3.yml Co-authored-by: Dominik Dorfmeister <[email protected]> * checking github context * checking pnpm version * fix? * does not like main - let's use a sha then * checking git head * checking git in general * fix???? * fix???????? pleeeease * still in detatched head state * try checking out the pr head sha? * checking out pr branch * checking githubref * full gh ref * dumping context again * try to checkout head ref * adding repo prop * git logging * trying with sha for base * fixing other jobs * fixing other jobs again * reverting root specific projects to run many * removing special stuff from build test * testing affected * reverting change --------- Co-authored-by: Dominik Dorfmeister <[email protected]>
- Loading branch information
1 parent
dbf452e
commit 55bdf77
Showing
3 changed files
with
32 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ jobs: | |
- name: Run Tests | ||
uses: nick-fields/[email protected] | ||
with: | ||
command: pnpm run test:ci | ||
command: pnpm run test:ci --base=${{ github.event.before }} | ||
timeout_minutes: 10 | ||
max_attempts: 3 | ||
- name: Publish | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,10 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.head_ref }} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 7 | ||
|
@@ -22,7 +26,7 @@ jobs: | |
- name: Run Tests | ||
uses: nick-fields/[email protected] | ||
with: | ||
command: pnpm test:lib | ||
command: pnpm test:lib --base=${{ github.event.pull_request.base.sha }} | ||
timeout_minutes: 5 | ||
max_attempts: 3 | ||
- name: Upload coverage to Codecov | ||
|
@@ -32,6 +36,10 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.head_ref }} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 7 | ||
|
@@ -41,12 +49,16 @@ jobs: | |
cache: 'pnpm' | ||
- name: Install dependencies | ||
run: pnpm --filter "./packages/**" --filter query --prefer-offline install | ||
- run: pnpm run test:eslint | ||
- run: pnpm run test:eslint --base=${{ github.event.pull_request.base.sha }} | ||
typecheck: | ||
name: 'Typecheck' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.head_ref }} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 7 | ||
|
@@ -56,12 +68,16 @@ jobs: | |
cache: 'pnpm' | ||
- name: Install dependencies | ||
run: pnpm --filter "./packages/**" --filter query --prefer-offline install | ||
- run: pnpm run test:types | ||
- run: pnpm run test:types --base=${{ github.event.pull_request.base.sha }} | ||
format: | ||
name: 'Format' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.head_ref }} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 7 | ||
|
@@ -71,12 +87,16 @@ jobs: | |
cache: 'pnpm' | ||
- name: Install dependencies | ||
run: pnpm --filter "./packages/**" --filter query --prefer-offline install | ||
- run: pnpm run test:format | ||
- run: pnpm run test:format --base=${{ github.event.pull_request.base.sha }} | ||
test-react-17: | ||
name: 'Test React 17' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.head_ref }} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 7 | ||
|
@@ -91,7 +111,7 @@ jobs: | |
with: | ||
timeout_minutes: 5 | ||
max_attempts: 3 | ||
command: pnpm run test:react:17 | ||
command: pnpm run test:react:17 --base=${{ github.event.pull_request.base.sha }} | ||
env: | ||
REACTJS_VERSION: 17 | ||
test-build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters