Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
riya-n committed Jan 3, 2024
1 parent 4604854 commit 778a6cc
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 20 deletions.
61 changes: 45 additions & 16 deletions .github/workflows/trunk-hourly-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ name: Upload E2E Test Results to Trunk (Hourly)

on:
schedule:
- cron: '*/10 * * * *'
- cron: "*/10 * * * *"
workflow_dispatch: {}

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
cancel-in-progress: true

jobs:

e2e-matrix-builder:
runs-on: ubuntu-22.04
timeout-minutes: 5
Expand Down Expand Up @@ -126,9 +125,14 @@ jobs:

- run: ls -l ./cypress/reports/mochareports/
- name: Upload results
run: ./.trunk-ci-analytics/bin --token=${{ secrets.TRUNK_DEBUGGER_TOKEN }} --input="cypress/reports/**/*junit*.xml"
uses: trunk-io/trunk-analytics-uploader@main # TODO: create v1 release tag
with:
junit_paths: cypress/reports/**/*junit*.xml
org_url_slug: trunk-staging-org
token: ${{ secrets.TRUNK_API_TOKEN }}
repo_url: ${{ github.repositoryUrl }}
dry_run: false
env:
REPO_URL: ${{ github.repositoryUrl }}
RUST_LOG: info
continue-on-error: true

Expand All @@ -142,9 +146,14 @@ jobs:

- run: ls -l ./cypress/reports/mochareports/
- name: Upload results
run: ./.trunk-ci-analytics/bin --token=${{ secrets.TRUNK_DEBUGGER_TOKEN }} --input="cypress/reports/**/*junit*.xml"
uses: trunk-io/trunk-analytics-uploader@main # TODO: create v1 release tag
with:
junit_paths: cypress/reports/**/*junit*.xml
org_url_slug: trunk-staging-org
token: ${{ secrets.TRUNK_API_TOKEN }}
repo_url: ${{ github.repositoryUrl }}
dry_run: false
env:
REPO_URL: ${{ github.repositoryUrl }}
RUST_LOG: info
continue-on-error: true

Expand All @@ -158,9 +167,14 @@ jobs:

- run: ls -l ./cypress/reports/mochareports/
- name: Upload results
run: ./.trunk-ci-analytics/bin --token=${{ secrets.TRUNK_DEBUGGER_TOKEN }} --input="cypress/reports/**/*junit*.xml"
uses: trunk-io/trunk-analytics-uploader@main # TODO: create v1 release tag
with:
junit_paths: cypress/reports/**/*junit*.xml
org_url_slug: trunk-staging-org
token: ${{ secrets.TRUNK_API_TOKEN }}
repo_url: ${{ github.repositoryUrl }}
dry_run: false
env:
REPO_URL: ${{ github.repositoryUrl }}
RUST_LOG: info
continue-on-error: true

Expand All @@ -175,9 +189,14 @@ jobs:

- run: ls -l ./cypress/reports/mochareports/
- name: Upload results
run: ./.trunk-ci-analytics/bin --token=${{ secrets.TRUNK_DEBUGGER_TOKEN }} --input="cypress/reports/**/*junit*.xml"
uses: trunk-io/trunk-analytics-uploader@main # TODO: create v1 release tag
with:
junit_paths: cypress/reports/**/*junit*.xml
org_url_slug: trunk-staging-org
token: ${{ secrets.TRUNK_API_TOKEN }}
repo_url: ${{ github.repositoryUrl }}
dry_run: false
env:
REPO_URL: ${{ github.repositoryUrl }}
RUST_LOG: info
continue-on-error: true

Expand All @@ -193,16 +212,26 @@ jobs:
continue-on-error: true

- name: Upload results
run: ./.trunk-ci-analytics/bin --token=${{ secrets.TRUNK_DEBUGGER_TOKEN }} --input="cypress/reports/**/*junit*.xml"
uses: trunk-io/trunk-analytics-uploader@main # TODO: create v1 release tag
with:
junit_paths: cypress/reports/**/*junit*.xml
org_url_slug: trunk-staging-org
token: ${{ secrets.TRUNK_API_TOKEN }}
repo_url: ${{ github.repositoryUrl }}
dry_run: false
env:
REPO_URL: ${{ github.repositoryUrl }}
RUST_LOG: info
continue-on-error: true

- name: Upload results
run: ./.trunk-ci-analytics/trunk-metrics-cli upload --custom-tags="tests=e2e" --token=${{ secrets.TRUNK_DEBUGGER_TOKEN }} --org=trunk-staging-org --junit-paths="cypress/reports/**/*junit*.xml"
uses: trunk-io/trunk-analytics-uploader@main # TODO: create v1 release tag
with:
junit_paths: cypress/reports/**/*junit*.xml
org_url_slug: trunk-staging-org
token: ${{ secrets.TRUNK_API_TOKEN }}
repo_url: ${{ github.repositoryUrl }}
tags: tests=e2e
dry_run: false
env:
REPO_URL: ${{ github.repositoryUrl }}
TRUNK_LOG: debug

continue-on-error: true
continue-on-error: true
12 changes: 8 additions & 4 deletions .github/workflows/trunk-hourly-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Upload Test Results to Trunk (Hourly)

on:
schedule:
- cron: '0 1 * * *'
- cron: "0 1 * * *"
workflow_dispatch: {}

concurrency:
Expand All @@ -13,7 +13,6 @@ env:
CLJ_KONDO_VERSION: "2023.09.07"

jobs:

be-tests:
runs-on: ubuntu-22.04
name: be-tests-java-${{ matrix.java-version }}-${{ matrix.edition }}
Expand Down Expand Up @@ -47,8 +46,13 @@ jobs:
continue-on-error: true

- name: Upload results
run: ./.trunk-ci-analytics/bin --token=${{ secrets.TRUNK_DEBUGGER_TOKEN }} --input="target/junit/**/*_test.xml"
uses: trunk-io/trunk-analytics-uploader@main # TODO: create v1 release tag
with:
junit_paths: target/junit/**/*_test.xml
org_url_slug: trunk-staging-org
token: ${{ secrets.TRUNK_API_TOKEN }} # TRUNK_DEBUGGER_TOKEN?
repo_url: ${{ github.repositoryUrl }}
dry_run: false
env:
REPO_URL: ${{ github.repositoryUrl }}
RUST_LOG: info
continue-on-error: true

0 comments on commit 778a6cc

Please sign in to comment.