forked from metabase/metabase
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from trunk-io/riya/trunk-10156-move-metabase-r…
…epo-to-use-gh-action Use trunk-analytics-uploader action
- Loading branch information
Showing
3 changed files
with
46 additions
and
27 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
||
|
@@ -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 | ||
|
||
|
@@ -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 | ||
|
||
|
@@ -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 | ||
|
||
|
@@ -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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Upload Test Results to Trunk (Hourly) | |
|
||
on: | ||
schedule: | ||
- cron: '0 1 * * *' | ||
- cron: "0 1 * * *" | ||
workflow_dispatch: {} | ||
|
||
concurrency: | ||
|
@@ -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 }} | ||
|
@@ -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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |