Skip to content

Commit b7c6993

Browse files
chore: Run only smoke tests on PR and all tests on release (box/box-codegen#825) (#1417)
1 parent a4c4991 commit b7c6993

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.codegen.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "engineHash": "fa469c0", "specHash": "a05e5d7", "version": "0.1.0" }
1+
{ "engineHash": "86773db", "specHash": "a05e5d7", "version": "0.1.0" }

.github/workflows/build.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ on:
33
pull_request:
44
branches:
55
- sdk-gen
6-
push:
7-
branches:
8-
- sdk-gen
96
jobs:
107
build-and-test:
118
runs-on: ubuntu-latest
@@ -24,7 +21,8 @@ jobs:
2421
distribution: ${{ matrix.distribution }}
2522
java-version: ${{ matrix.java }}
2623
cache: 'gradle'
27-
- name: Build and test
24+
- name: All Tests
25+
if: startsWith(github.head_ref, 'codegen-release')
2826
env:
2927
JWT_CONFIG_BASE_64: ${{ secrets.JWT_CONFIG_BASE_64 }}
3028
ADMIN_USER_ID: ${{ secrets.ADMIN_USER_ID }}
@@ -43,8 +41,12 @@ jobs:
4341
SLACK_ORG_ID: ${{ secrets.SLACK_ORG_ID }}
4442
SLACK_PARTNER_ITEM_ID: ${{ secrets.SLACK_PARTNER_ITEM_ID }}
4543
run: ./gradlew check --stacktrace
46-
47-
- name: Coverage
44+
- name: Smoke Tests
45+
if: "!startsWith(github.head_ref, 'codegen-release')"
4846
env:
49-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50-
run: ./gradlew jacocoTestReport coverallsJacoco
47+
JWT_CONFIG_BASE_64: ${{ secrets.JWT_CONFIG_BASE_64 }}
48+
CLIENT_ID: ${{ secrets.CLIENT_ID }}
49+
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
50+
USER_ID: ${{ secrets.USER_ID }}
51+
ENTERPRISE_ID: ${{ secrets.ENTERPRISE_ID }}
52+
run: ./gradlew test --tests com.box.sdkgen.test.auth.AuthITest --tests com.box.sdkgen.test.files.FilesITest --tests com.box.sdkgen.test.downloads.DownloadsITest --tests com.box.sdkgen.test.uploads.UploadsITest --stacktrace

0 commit comments

Comments
 (0)