Skip to content

Commit

Permalink
ci: Add format workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
notdevcody committed Aug 19, 2024
1 parent e316e38 commit 4da655b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 7 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: IntelliJ Format

on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]

jobs:
formatting:
runs-on: ubuntu-latest
steps:
- if: github.event_name != 'pull_request'
uses: actions/checkout@v4
- if: github.event_name == 'pull_request'
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Cache IDEA
uses: actions/cache@v3
with:
path: /home/runner/work/_temp/_github_workflow/idea-cache
key: ${{ runner.os }}-idea-cache-v2
- name: Run Formatter
uses: notdevcody/intellij-format-action@v2
with:
path: src/
7 changes: 0 additions & 7 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: Java CI with Gradle

on:
Expand Down

0 comments on commit 4da655b

Please sign in to comment.