test: upgrade github actions node version for 4.x (#40825)

* test: upgrade github actions node version

* chore: upgrade @testing-library/*

* chore: upgrade @testing-library/*

* fix: preview build

* fix: preview build
This commit is contained in:
afc163 2023-02-21 16:52:48 +08:00 committed by GitHub
parent 517cd60f4f
commit c43f2d74e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 54 additions and 22 deletions

View File

@ -1,21 +0,0 @@
name: Codeball
on:
pull_request: {}
pull_request_review_comment:
types: [created, edited]
jobs:
codeball_job:
runs-on: ubuntu-latest
name: Codeball
steps:
# Run Codeball on all new Pull Requests and Review Comments! 🚀
# For customizations and more documentation, see https://github.com/sturdy-dev/codeball-action
- name: Codeball
uses: sturdy-dev/codeball-action@v2
with:
# Settings for "Codeball Approver"
approvePullRequests: "false"
labelPullRequestsWhenApproved: "true"
labelPullRequestsWhenReviewNeeded: "true"
failJobsWhenReviewNeeded: "false"

View File

@ -57,6 +57,10 @@ jobs:
- name: checkout - name: checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: restore cache from package-lock.json - name: restore cache from package-lock.json
uses: actions/cache@v3 uses: actions/cache@v3
with: with:

View File

@ -25,6 +25,10 @@ jobs:
- name: checkout - name: checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: cache package-lock.json - name: cache package-lock.json
uses: actions/cache@v3 uses: actions/cache@v3
with: with:

View File

@ -19,6 +19,10 @@ jobs:
- name: checkout - name: checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: cache package-lock.json - name: cache package-lock.json
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
@ -51,6 +55,10 @@ jobs:
- name: checkout - name: checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: restore cache from package-lock.json - name: restore cache from package-lock.json
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
@ -73,6 +81,10 @@ jobs:
- name: checkout - name: checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: restore cache from package-lock.json - name: restore cache from package-lock.json
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
@ -95,6 +107,10 @@ jobs:
- name: checkout - name: checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: restore cache from package-lock.json - name: restore cache from package-lock.json
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
@ -119,6 +135,10 @@ jobs:
- name: checkout - name: checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: restore cache from package-lock.json - name: restore cache from package-lock.json
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
@ -151,6 +171,10 @@ jobs:
- name: checkout - name: checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: restore cache from package-lock.json - name: restore cache from package-lock.json
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
@ -189,6 +213,10 @@ jobs:
- name: checkout - name: checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: restore cache from package-lock.json - name: restore cache from package-lock.json
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
@ -244,6 +272,10 @@ jobs:
- name: checkout - name: checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: restore cache from package-lock.json - name: restore cache from package-lock.json
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
@ -323,7 +355,11 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [normal-test] needs: [normal-test]
steps: steps:
- uses: actions/checkout@v3 - name: checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: actions/download-artifact@v3 - uses: actions/download-artifact@v3
with: with:
name: coverage-artifacts name: coverage-artifacts
@ -346,6 +382,10 @@ jobs:
- name: checkout - name: checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: restore cache from package-lock.json - name: restore cache from package-lock.json
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
@ -393,6 +433,10 @@ jobs:
if: ${{ github.event_name != 'pull_request' || matrix.module != 'lib' }} if: ${{ github.event_name != 'pull_request' || matrix.module != 'lib' }}
uses: actions/checkout@v3 uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: restore cache from package-lock.json - name: restore cache from package-lock.json
# lib only run in master branch not in pull request # lib only run in master branch not in pull request
if: ${{ github.event_name != 'pull_request' || matrix.module != 'lib' }} if: ${{ github.event_name != 'pull_request' || matrix.module != 'lib' }}

View File

@ -167,6 +167,7 @@
"@qixian.cs/github-contributors-list": "^1.0.3", "@qixian.cs/github-contributors-list": "^1.0.3",
"@size-limit/file": "^8.0.0", "@size-limit/file": "^8.0.0",
"@stackblitz/sdk": "^1.3.0", "@stackblitz/sdk": "^1.3.0",
"@testing-library/dom": "^9.0.0",
"@testing-library/jest-dom": "^5.16.3", "@testing-library/jest-dom": "^5.16.3",
"@testing-library/react": "^12.0.0", "@testing-library/react": "^12.0.0",
"@testing-library/user-event": "^14.4.2", "@testing-library/user-event": "^14.4.2",