Skip to content

fix: mark test_action_enum as xfail (#889) #1483

fix: mark test_action_enum as xfail (#889)

fix: mark test_action_enum as xfail (#889) #1483

Workflow file for this run

name: Run JS SDK test
on:
push:
branches:
- master
pull_request:
jobs:
run-js-tests:
timeout-minutes: 60
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install dependencies
run: npm install -g [email protected]
- name: Install packages in js folder
run: cd js && pnpm install
- name: pnpm build
run: cd js && pnpm build
- name: run test
run: cd js && pnpm test:coverage --max-workers 16
- name: Upload `coverage` folder to R2
if: ${{ always() }}
uses: ryand56/r2-upload-action@latest
with:
r2-account-id: ${{ secrets.R2_ACCOUNT_ID }}
r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }}
r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }}
r2-bucket: github-action
source-dir: js/coverage
destination-dir: coverage-${{ github.run_id }}/coverage
- name: Print unique URL
if: ${{ always() }}
run: |
echo "URL: 'https://pub-92e668239ab84bfd80ee07d61e9d2f40.r2.dev/coverage-${{ github.run_id }}/coverage/index.html'"
- name: Upload jest html-reporters folder to R2
if: ${{ always() }}
uses: ryand56/r2-upload-action@latest
with:
r2-account-id: ${{ secrets.R2_ACCOUNT_ID }}
r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }}
r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }}
r2-bucket: github-action
source-dir: js/html-report
destination-dir: html-report-${{ github.run_id }}/html-report
- name: Print HTML report folder unique URL
if: ${{ always() }}
run: |
echo "HTML report folder unique URL: 'https://pub-92e668239ab84bfd80ee07d61e9d2f40.r2.dev/html-report-${{ github.run_id }}/html-report/report.html'"
- name: Find Comment
if: ${{ always() }}
uses: peter-evans/find-comment@v3
id: fc
continue-on-error: true
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: This comment was generated by github-actions[bot]!
- name: Create or update comment
if: ${{ github.event_name == 'pull_request' && always() }}
uses: peter-evans/create-or-update-comment@v4
continue-on-error: true
with:
edit-mode: replace
issue-number: ${{ github.event.pull_request.number }}
body: |
This comment was generated by github-actions[bot]!
## JS SDK Coverage Report
📊 Coverage report for JS SDK can be found at the following URL:
https://pub-92e668239ab84bfd80ee07d61e9d2f40.r2.dev/coverage-${{ github.run_id }}/coverage/index.html
📁 Test report folder can be found at the following URL:
https://pub-92e668239ab84bfd80ee07d61e9d2f40.r2.dev/html-report-${{ github.run_id }}/html-report/report.html
reactions: rocket
comment-id: ${{ steps.fc.outputs.comment-id }}