Skip to content

Commit

Permalink
Format and Process Resources in PR autoamtically (airbytehq#23415)
Browse files Browse the repository at this point in the history
* Format and Process Resources on master branch

* gradle.yaml writes

* TEST

* checkout right branch

* check out ref

* Automated Change

* check for changes before format

* Automated Change

---------

Co-authored-by: evantahler <evantahler@users.noreply.github.com>
  • Loading branch information
2 people authored and danielduckworth committed Mar 13, 2023
1 parent 13120d3 commit e47bdcf
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 210 deletions.
28 changes: 21 additions & 7 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ jobs:
steps:
- name: Checkout Airbyte
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}

- name: Cache Build Artifacts
uses: ./.github/actions/cache-build-artifacts
Expand Down Expand Up @@ -193,6 +195,8 @@ jobs:
steps:
- name: Checkout Airbyte
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}

- name: Cache Build Artifacts
uses: ./.github/actions/cache-build-artifacts
Expand Down Expand Up @@ -239,27 +243,37 @@ jobs:
attempt_limit: 3
attempt_delay: 5000 # in ms

# Verify that the only committed file changes will be those made by the build, formatter or processResources
- name: Ensure no file change from code formatting
run: git --no-pager diff && test -z "$(git --no-pager diff)"

- name: Format
uses: Wandalen/wretry.action@master
with:
command: SUB_BUILD=CONNECTORS_BASE ./gradlew format --scan --info --stacktrace
attempt_limit: 3
attempt_delay: 5000 # in ms

# Verify that the linter is happy
- name: Ensure no file change from code formatting
run: git --no-pager diff && test -z "$(git --no-pager diff)"

- name: Build
uses: Wandalen/wretry.action@master
with:
command: SUB_BUILD=CONNECTORS_BASE ./gradlew build --scan
attempt_limit: 3
attempt_delay: 5000 # in ms

# Ensure that the connector autogenerated files are happy
- name: Ensure no file change from regenerating connector definitions/specs
run: git --no-pager diff && test -z "$(git --no-pager diff)"
- name: Process Resources
uses: Wandalen/wretry.action@master
with:
command: SUB_BUILD=CONNECTORS_BASE ./gradlew :airbyte-config:init:processResources --scan
attempt_limit: 3
attempt_delay: 5000 # in ms

- name: Commit Changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Automated Change
commit_user_name: Octavia Squidington III
commit_user_email: octavia-squidington-iii@users.noreply.github.com

- name: Publish Connectors Base Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
Expand Down
203 changes: 0 additions & 203 deletions .github/workflows/publish-connector-command.yml

This file was deleted.

0 comments on commit e47bdcf

Please sign in to comment.