Skip to content

Commit

Permalink
Merge pull request #61 from trunk-io/riya/trunk-10156-move-metabase-r…
Browse files Browse the repository at this point in the history
…epo-to-use-gh-action

Use trunk-analytics-uploader action
  • Loading branch information
zaycev authored Jan 3, 2024
2 parents 4604854 + 7c49546 commit 87e89fd
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 27 deletions.
49 changes: 33 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,12 @@ 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/[email protected]
with:
junit_paths: cypress/reports/**/*junit*.xml
org_url_slug: trunk-staging-org
token: ${{ secrets.TRUNK_DEBUGGER_TOKEN }}
env:
REPO_URL: ${{ github.repositoryUrl }}
RUST_LOG: info
continue-on-error: true

Expand All @@ -142,9 +144,12 @@ 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/[email protected]
with:
junit_paths: cypress/reports/**/*junit*.xml
org_url_slug: trunk-staging-org
token: ${{ secrets.TRUNK_DEBUGGER_TOKEN }}
env:
REPO_URL: ${{ github.repositoryUrl }}
RUST_LOG: info
continue-on-error: true

Expand All @@ -158,9 +163,12 @@ 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/[email protected]
with:
junit_paths: cypress/reports/**/*junit*.xml
org_url_slug: trunk-staging-org
token: ${{ secrets.TRUNK_DEBUGGER_TOKEN }}
env:
REPO_URL: ${{ github.repositoryUrl }}
RUST_LOG: info
continue-on-error: true

Expand All @@ -175,9 +183,12 @@ 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/[email protected]
with:
junit_paths: cypress/reports/**/*junit*.xml
org_url_slug: trunk-staging-org
token: ${{ secrets.TRUNK_DEBUGGER_TOKEN }}
env:
REPO_URL: ${{ github.repositoryUrl }}
RUST_LOG: info
continue-on-error: true

Expand All @@ -193,16 +204,22 @@ 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/[email protected]
with:
junit_paths: cypress/reports/**/*junit*.xml
org_url_slug: trunk-staging-org
token: ${{ secrets.TRUNK_DEBUGGER_TOKEN }}
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/[email protected]
with:
junit_paths: cypress/reports/**/*junit*.xml
org_url_slug: trunk-staging-org
token: ${{ secrets.TRUNK_DEBUGGER_TOKEN }}
tags: tests=e2e
env:
REPO_URL: ${{ github.repositoryUrl }}
TRUNK_LOG: debug

continue-on-error: true
continue-on-error: true
10 changes: 6 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,11 @@ 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/[email protected]
with:
junit_paths: target/junit/**/*_test.xml
org_url_slug: trunk-staging-org
token: ${{ secrets.TRUNK_DEBUGGER_TOKEN }}
env:
REPO_URL: ${{ github.repositoryUrl }}
RUST_LOG: info
continue-on-error: true
14 changes: 7 additions & 7 deletions .github/workflows/trunk-sync-fork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ name: Trunk Sync Fork
on:
schedule:
# Run every 10 minutes.
- cron: '*/10 * * * *'
- cron: "*/10 * * * *"
workflow_dispatch:

jobs:
sync:
runs-on: ubuntu-22.04

steps:
- name: Run Fork Sync
uses: tgymnich/[email protected]
with:
owner: metabase
base: master
head: master
- name: Run Fork Sync
uses: tgymnich/[email protected]
with:
owner: metabase
base: master
head: master

0 comments on commit 87e89fd

Please sign in to comment.