diff --git a/.github/workflows/codeball.yml b/.github/workflows/codeball.yml deleted file mode 100644 index 1e796958b0..0000000000 --- a/.github/workflows/codeball.yml +++ /dev/null @@ -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" diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml index 0af77d36c4..e037dcc714 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -57,6 +57,10 @@ jobs: - name: checkout uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + - name: restore cache from package-lock.json uses: actions/cache@v3 with: diff --git a/.github/workflows/size-limit.yml b/.github/workflows/size-limit.yml index 8abd9ff042..b59ab3fa96 100644 --- a/.github/workflows/size-limit.yml +++ b/.github/workflows/size-limit.yml @@ -25,6 +25,10 @@ jobs: - name: checkout uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + - name: cache package-lock.json uses: actions/cache@v3 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1d8f938cd8..315ce19e14 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,6 +19,10 @@ jobs: - name: checkout uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + - name: cache package-lock.json uses: actions/cache@v3 with: @@ -51,6 +55,10 @@ jobs: - name: checkout uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + - name: restore cache from package-lock.json uses: actions/cache@v3 with: @@ -73,6 +81,10 @@ jobs: - name: checkout uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + - name: restore cache from package-lock.json uses: actions/cache@v3 with: @@ -95,6 +107,10 @@ jobs: - name: checkout uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + - name: restore cache from package-lock.json uses: actions/cache@v3 with: @@ -119,6 +135,10 @@ jobs: - name: checkout uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + - name: restore cache from package-lock.json uses: actions/cache@v3 with: @@ -151,6 +171,10 @@ jobs: - name: checkout uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + - name: restore cache from package-lock.json uses: actions/cache@v3 with: @@ -189,6 +213,10 @@ jobs: - name: checkout uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + - name: restore cache from package-lock.json uses: actions/cache@v3 with: @@ -244,6 +272,10 @@ jobs: - name: checkout uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + - name: restore cache from package-lock.json uses: actions/cache@v3 with: @@ -323,7 +355,11 @@ jobs: runs-on: ubuntu-latest needs: [normal-test] 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 with: name: coverage-artifacts @@ -346,6 +382,10 @@ jobs: - name: checkout uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + - name: restore cache from package-lock.json uses: actions/cache@v3 with: @@ -393,6 +433,10 @@ jobs: if: ${{ github.event_name != 'pull_request' || matrix.module != 'lib' }} uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + - name: restore cache from package-lock.json # lib only run in master branch not in pull request if: ${{ github.event_name != 'pull_request' || matrix.module != 'lib' }} diff --git a/package.json b/package.json index 723a017773..61c1e59871 100644 --- a/package.json +++ b/package.json @@ -167,6 +167,7 @@ "@qixian.cs/github-contributors-list": "^1.0.3", "@size-limit/file": "^8.0.0", "@stackblitz/sdk": "^1.3.0", + "@testing-library/dom": "^9.0.0", "@testing-library/jest-dom": "^5.16.3", "@testing-library/react": "^12.0.0", "@testing-library/user-event": "^14.4.2",