Skip to content

Commit

Permalink
Merge pull request #223 from camunda-cloud/40-code-formatting
Browse files Browse the repository at this point in the history
40 code formatting
  • Loading branch information
pihme authored Mar 2, 2022
2 parents cd9afac + f50843c commit ad943c1
Show file tree
Hide file tree
Showing 12 changed files with 984 additions and 32 deletions.
8 changes: 7 additions & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---

name: Bug report
about: Create a report to help us improve
title: ''
Expand All @@ -8,14 +9,16 @@ assignees: ''
---

## Description

<!-- A clear and concise description of the bug you've encountered. -->

### Expected behaviour

<!-- The behaviour that you expect to happen. -->

## Reproduction steps
<!-- How can we reproduce your issue? -->

<!-- How can we reproduce your issue? -->
<details>
<summary>Test code</summary>
<!-- If possible, please add your test code in this code block. -->
Expand All @@ -27,6 +30,7 @@ assignees: ''

<details>
<summary>Process</summary>

<!-- If possible, please add your process in this code block. -->

```xml
Expand All @@ -35,5 +39,7 @@ assignees: ''
</details>

## Environment

- OS: <!-- e.g. Linux -->
- Version: <!-- e.g. 1.0.0 -->

1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/general_issue.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---

name: General issue
about: General changes to the project
title: ''
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,41 @@ on:
pull_request: { }
workflow_call: { }
jobs:
code-formatting:
name: Apply code formatting
timeout-minutes: 15
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Cache
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up Java environment
uses: actions/setup-java@v3.0.0
with:
distribution: temurin
java-version: 17

- name: Apply format
run: mvn spotless:apply

- name: Commit and push format changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore: apply format"

build-and-test:
name: Run tests on ${{ matrix.os }}
timeout-minutes: 15
needs: code-formatting
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -46,6 +78,7 @@ jobs:
build-and-test-testcontainers:
name: Run tests on ubuntu-latest using testcontainers
timeout-minutes: 15
needs: code-formatting
runs-on: ubuntu-latest
env:
IMAGE_NAME: "qa-tests"
Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
.idea
!.idea/codeStyles
!.idea/externalDependencies.xml
!.idea/google-java-format.xml
!.idea/saveactions_settings.xml

target
.classpath
.checkstyle
.project
.checkstyle
.settings
.factorypath
build.properties
Expand Down
Loading

0 comments on commit ad943c1

Please sign in to comment.