Skip to content

Commit

Permalink
ci(fix): allow ci to automatically format src files and commit them
Browse files Browse the repository at this point in the history
  • Loading branch information
BrycensRanch committed Mar 5, 2023
1 parent 1d62880 commit f1a899e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/gradle.yml
Expand Up @@ -77,7 +77,7 @@ jobs:


- name: Build
run: ./gradlew build -x test
run: ./gradlew build -x test -x checkLicenseMain
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
run: chmod +x gradlew

- name: Test
run: ./gradlew test
run: ./gradlew test -x checkLicenseMain

# I honestly detest Minecraft plugin unit testing and I don't think it's worth the time to write tests for a project like this.
# I'm not going to write tests for this project, but I will leave the code here in case you want to write tests for your own project.
Expand Down Expand Up @@ -192,6 +192,8 @@ jobs:
git_tag_gpgsign: false
# No, GitHub does not currently support GPG signed pushes, only signed commits.
git_push_gpgsign: false
- name: Update license headers if necessary
run: ./gradlew licenseFormat
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
Expand Down
3 changes: 2 additions & 1 deletion .releaserc.json
Expand Up @@ -82,7 +82,8 @@
{
"assets": [
"gradle.properties",
"CHANGELOG.md"
"CHANGELOG.md",
"src/**/*.{java,kt}"
]
}
],
Expand Down

0 comments on commit f1a899e

Please sign in to comment.