-
Notifications
You must be signed in to change notification settings - Fork 470
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into pr/playground-link-in-error-message
- Loading branch information
Showing
40 changed files
with
773 additions
and
607 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
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 |
---|---|---|
|
@@ -31,6 +31,7 @@ supported version. | |
Relevant code or config | ||
|
||
```js | ||
|
||
``` | ||
|
||
What you did: | ||
|
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ on: | |
push: | ||
branches: | ||
- '+([0-9])?(.{+([0-9]),x}).x' | ||
- 'master' | ||
- 'main' | ||
- 'next' | ||
- 'next-major' | ||
- 'beta' | ||
|
@@ -16,19 +16,20 @@ jobs: | |
if: ${{ !contains(github.head_ref, 'all-contributors') }} | ||
strategy: | ||
matrix: | ||
node: [10.14.2, 12, 14, 15] | ||
node: [10.14.2, 12, 14, 15, 16] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🛑 Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ secrets.GITHUB_TOKEN }} | ||
uses: styfle/[email protected] | ||
|
||
- name: ⬇️ Checkout repo | ||
uses: actions/checkout@v2 | ||
with: | ||
# required by codecov/codecov-action | ||
fetch-depth: 0 | ||
|
||
- name: ⎔ Setup node | ||
uses: actions/setup-node@v1 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
|
@@ -37,30 +38,35 @@ jobs: | |
with: | ||
useLockFile: false | ||
|
||
# TODO: Can be removed if https://github.com/kentcdodds/kcd-scripts/pull/146 is released | ||
- name: Verify format (`npm run format` committed?) | ||
run: npm run format -- --check --no-write | ||
|
||
- name: ▶️ Run validate script | ||
run: npm run validate | ||
|
||
- name: ⬆️ Upload coverage report | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
fail_ci_if_error: true | ||
flags: node-${{ matrix.node }} | ||
|
||
release: | ||
needs: main | ||
runs-on: ubuntu-latest | ||
if: | ||
${{ github.repository == 'testing-library/dom-testing-library' && | ||
contains('refs/heads/master,refs/heads/beta,refs/heads/next,refs/heads/alpha', | ||
contains('refs/heads/main,refs/heads/beta,refs/heads/next,refs/heads/alpha', | ||
github.ref) && github.event_name == 'push' }} | ||
steps: | ||
- name: 🛑 Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ secrets.GITHUB_TOKEN }} | ||
uses: styfle/[email protected] | ||
|
||
- name: ⬇️ Checkout repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: ⎔ Setup node | ||
uses: actions/setup-node@v1 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
|
||
|
@@ -79,7 +85,7 @@ jobs: | |
branches: | | ||
[ | ||
'+([0-9])?(.{+([0-9]),x}).x', | ||
'master', | ||
'main', | ||
'next', | ||
'next-major', | ||
{name: 'beta', prerelease: true}, | ||
|
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
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
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
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
Oops, something went wrong.