Skip to content

Commit

Permalink
feat: redo project setup again :3
Browse files Browse the repository at this point in the history
  • Loading branch information
JustPyrrha committed Jul 18, 2024
1 parent 2885ded commit e847db2
Show file tree
Hide file tree
Showing 63 changed files with 302 additions and 1,221 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
interval: "weekly"
6 changes: 3 additions & 3 deletions .github/workflows/ci_push.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI (Push)
name: Build

on:
push:
Expand Down Expand Up @@ -31,7 +31,7 @@ jobs:
run: chmod +x gradlew

- name: Build and Test
run: ./gradlew build test
run: ./gradlew build test spotlessCheck

publish:
name: Publish
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.PGP_SECRET_KEY }}
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.PGP_KEY_ID }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.PGP_KEY_PASSPHRASE }}
run: ./gradlew build :NeoForge:modrinth :NeoForge:modrinthSyncBody
run: ./gradlew build modrinth modrinthSyncBody

- name: Publish to GitHub
env:
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/pullrequest-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build, Test, and Check (Pull Request)

on:
pull_request:

jobs:
build:
name: Build, Test, and Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Validate Wrapper
uses: gradle/actions/wrapper-validation@v3

- name: Set Gradle Wrapper Executable
run: chmod +x gradlew

- name: Build, Test, and Check
run: ./gradlew build test spotlessCheck
40 changes: 4 additions & 36 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,37 +1,5 @@
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/

### IntelliJ IDEA ###
.gradle/
.idea/

### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

### VS Code ###
.vscode/

### Mac OS ###
.DS_Store

### Loader Runs ###
/NeoForge/runs/
/Quilt/runs/
.kotlin/
build/
runs/
12 changes: 0 additions & 12 deletions Common/build.gradle.kts

This file was deleted.

35 changes: 0 additions & 35 deletions Common/src/main/kotlin/ModRuntime.kt

This file was deleted.

27 changes: 0 additions & 27 deletions Common/src/main/kotlin/PyTekCore.kt

This file was deleted.

21 changes: 0 additions & 21 deletions Common/src/main/kotlin/blocks/CableBlock.kt

This file was deleted.

36 changes: 0 additions & 36 deletions Common/src/main/kotlin/blocks/ModBlocks.kt

This file was deleted.

46 changes: 0 additions & 46 deletions Common/src/main/kotlin/blocks/ReactorControllerBlock.kt

This file was deleted.

16 changes: 0 additions & 16 deletions Common/src/main/kotlin/blocks/entity/CableBlockEntity.kt

This file was deleted.

41 changes: 0 additions & 41 deletions Common/src/main/kotlin/blocks/entity/ModBlockEntities.kt

This file was deleted.

This file was deleted.

Loading

0 comments on commit e847db2

Please sign in to comment.