Skip to content

Commit 784ecf3

Browse files
committed
init
1 parent dcb56c1 commit 784ecf3

File tree

2 files changed

+2
-167
lines changed

2 files changed

+2
-167
lines changed

.github/actions/analytics-uploader-wrapper/action.yaml

+1-166
Original file line numberDiff line numberDiff line change
@@ -36,23 +36,8 @@ inputs:
3636
runs:
3737
using: composite
3838
steps:
39-
- name: Upload test results with CLI version ${{ inputs.cli-version }} to prod
40-
if: "${{ inputs.cli-version != '' }}"
41-
continue-on-error: true
42-
uses: trunk-io/analytics-uploader@main
43-
with:
44-
org-slug: trunk
45-
token: ${{ inputs.token-prod }}
46-
cli-version: ${{ inputs.cli-version }}
47-
junit-paths: ${{ inputs.junit-paths }}
48-
bazel-bep-path: ${{ inputs.bazel-bep-path }}
49-
run: ${{ inputs.run }}
50-
quarantine: false
51-
5239
- name: Upload test results with CLI version ${{ inputs.cli-version }} to staging
53-
if: "${{ inputs.cli-version != '' }}"
54-
continue-on-error: true
55-
uses: trunk-io/analytics-uploader@main
40+
uses: trunk-io/analytics-uploader@gabe/find-previous-exit-code
5641
with:
5742
org-slug: trunk-staging-org
5843
token: ${{ inputs.token-staging }}
@@ -63,153 +48,3 @@ runs:
6348
quarantine: true
6449
env:
6550
TRUNK_PUBLIC_API_ADDRESS: https://api.trunk-staging.io
66-
67-
- name: Upload test results with CLI version ${{ inputs.cli-version }} to dev
68-
if: "${{ inputs.cli-version != '' }}"
69-
continue-on-error: true
70-
uses: trunk-io/analytics-uploader@main
71-
with:
72-
org-slug: trunk-io
73-
token: ${{ inputs.token-dev }}
74-
cli-version: ${{ inputs.cli-version }}
75-
junit-paths: ${{ inputs.junit-paths }}
76-
bazel-bep-path: ${{ inputs.bazel-bep-path }}
77-
run: ${{ inputs.run }}
78-
quarantine: true
79-
env:
80-
TRUNK_PUBLIC_API_ADDRESS: https://api.dev.trunk-staging.io/
81-
DISABLE_SENTRY: true
82-
83-
- name: Upload test results with CLI version ${{ inputs.cli-version }} to dev2
84-
if: "${{ inputs.cli-version != '' }}"
85-
continue-on-error: true
86-
uses: trunk-io/analytics-uploader@main
87-
with:
88-
org-slug: trunk-io
89-
token: ${{ inputs.token-dev2 }}
90-
cli-version: ${{ inputs.cli-version }}
91-
junit-paths: ${{ inputs.junit-paths }}
92-
bazel-bep-path: ${{ inputs.bazel-bep-path }}
93-
run: ${{ inputs.run }}
94-
quarantine: true
95-
env:
96-
TRUNK_PUBLIC_API_ADDRESS: https://api.dev2.trunk-staging.io/
97-
DISABLE_SENTRY: true
98-
99-
- name: Upload test results with CLI version ${{ inputs.cli-version }} to dev3
100-
if: "${{ inputs.cli-version != '' }}"
101-
continue-on-error: true
102-
uses: trunk-io/analytics-uploader@main
103-
with:
104-
org-slug: trunk-io
105-
token: ${{ inputs.token-dev3 }}
106-
cli-version: ${{ inputs.cli-version }}
107-
junit-paths: ${{ inputs.junit-paths }}
108-
bazel-bep-path: ${{ inputs.bazel-bep-path }}
109-
run: ${{ inputs.run }}
110-
quarantine: true
111-
env:
112-
TRUNK_PUBLIC_API_ADDRESS: https://api.dev3.trunk-staging.io/
113-
DISABLE_SENTRY: true
114-
115-
- name: Upload test results with CLI version ${{ inputs.cli-version }} to dev4
116-
if: "${{ inputs.cli-version != '' }}"
117-
continue-on-error: true
118-
uses: trunk-io/analytics-uploader@main
119-
with:
120-
org-slug: trunk-io
121-
token: ${{ inputs.token-dev4 }}
122-
cli-version: ${{ inputs.cli-version }}
123-
junit-paths: ${{ inputs.junit-paths }}
124-
bazel-bep-path: ${{ inputs.bazel-bep-path }}
125-
run: ${{ inputs.run }}
126-
quarantine: true
127-
env:
128-
TRUNK_PUBLIC_API_ADDRESS: https://api.dev4.trunk-staging.io/
129-
DISABLE_SENTRY: true
130-
131-
- name: Upload test results with default CLI version to prod
132-
if: "${{ inputs.cli-version == '' }}"
133-
continue-on-error: true
134-
uses: trunk-io/analytics-uploader@main
135-
with:
136-
org-slug: trunk
137-
token: ${{ inputs.token-prod }}
138-
junit-paths: ${{ inputs.junit-paths }}
139-
bazel-bep-path: ${{ inputs.bazel-bep-path }}
140-
run: ${{ inputs.run }}
141-
quarantine: false
142-
143-
- name: Upload test results with default CLI version to staging
144-
if: "${{ inputs.cli-version == '' }}"
145-
continue-on-error: true
146-
uses: trunk-io/analytics-uploader@main
147-
with:
148-
org-slug: trunk-staging-org
149-
token: ${{ inputs.token-staging }}
150-
junit-paths: ${{ inputs.junit-paths }}
151-
bazel-bep-path: ${{ inputs.bazel-bep-path }}
152-
run: ${{ inputs.run }}
153-
quarantine: true
154-
env:
155-
TRUNK_PUBLIC_API_ADDRESS: https://api.trunk-staging.io
156-
157-
- name: Upload test results with default CLI version to dev
158-
if: "${{ inputs.cli-version == '' }}"
159-
continue-on-error: true
160-
uses: trunk-io/analytics-uploader@main
161-
with:
162-
org-slug: trunk-io
163-
token: ${{ inputs.token-dev }}
164-
junit-paths: ${{ inputs.junit-paths }}
165-
bazel-bep-path: ${{ inputs.bazel-bep-path }}
166-
run: ${{ inputs.run }}
167-
quarantine: true
168-
env:
169-
TRUNK_PUBLIC_API_ADDRESS: https://api.dev.trunk-staging.io
170-
DISABLE_SENTRY: true
171-
172-
- name: Upload test results with default CLI version to dev2
173-
if: "${{ inputs.cli-version == '' }}"
174-
continue-on-error: true
175-
uses: trunk-io/analytics-uploader@main
176-
with:
177-
org-slug: trunk-io
178-
token: ${{ inputs.token-dev2 }}
179-
junit-paths: ${{ inputs.junit-paths }}
180-
bazel-bep-path: ${{ inputs.bazel-bep-path }}
181-
run: ${{ inputs.run }}
182-
quarantine: true
183-
env:
184-
TRUNK_PUBLIC_API_ADDRESS: https://api.dev2.trunk-staging.io
185-
DISABLE_SENTRY: true
186-
187-
- name: Upload test results with default CLI version to dev3
188-
if: "${{ inputs.cli-version == '' }}"
189-
continue-on-error: true
190-
uses: trunk-io/analytics-uploader@main
191-
with:
192-
org-slug: trunk-io
193-
token: ${{ inputs.token-dev3 }}
194-
junit-paths: ${{ inputs.junit-paths }}
195-
bazel-bep-path: ${{ inputs.bazel-bep-path }}
196-
run: ${{ inputs.run }}
197-
quarantine: true
198-
env:
199-
TRUNK_PUBLIC_API_ADDRESS: https://api.dev3.trunk-staging.io
200-
DISABLE_SENTRY: true
201-
202-
# Do not continue-on-error for last upload
203-
- name: Upload test results with default CLI version to dev4
204-
if: "${{ inputs.cli-version == '' }}"
205-
uses: trunk-io/analytics-uploader@main
206-
with:
207-
org-slug: trunk-io
208-
token: ${{ inputs.token-dev4 }}
209-
junit-paths: ${{ inputs.junit-paths }}
210-
bazel-bep-path: ${{ inputs.bazel-bep-path }}
211-
run: ${{ inputs.run }}
212-
quarantine: true
213-
env:
214-
TRUNK_PUBLIC_API_ADDRESS: https://api.dev4.trunk-staging.io
215-
DISABLE_SENTRY: true

.github/workflows/java-tests.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Java Tests
2+
permissions: read-all
23

34
on:
45
schedule:
@@ -18,7 +19,6 @@ on:
1819
jobs:
1920
test:
2021
runs-on: ubuntu-latest
21-
2222
steps:
2323
- uses: actions/checkout@v4
2424

0 commit comments

Comments
 (0)