Fix flake factory #127
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
name: Run Javascript Tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
runs-on: [self-hosted, linux] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
- name: Install Dependencies | |
run: | | |
pnpm install | |
- name: Run Mocha Tests | |
run: npm run mocha-test | |
- name: Run Jest Tests | |
if: ${{ always() }} | |
run: npm run jest-test | |
- name: Run Jasmine Tests | |
if: ${{ always() }} | |
run: npm run jasmine-test | |
- name: Flaky Test Reporter | |
if: ${{ always() }} | |
uses: trunk-io/analytics-uploader@main | |
with: | |
# Path to your test results. | |
junit-paths: "**/*_test.xml,**/junitresults-*.xml" | |
# Provide your Trunk organization slug. | |
org-slug: trunk-staging-org | |
# Provide your Trunk API token as a GitHub secret. | |
token: ${{ secrets.TRUNK_STAGING_ORG_API_TOKEN }} | |
env: | |
TRUNK_API_ADDRESS: https://api.trunk-staging.io/v1/metrics/createBundleUpload | |
continue-on-error: true |