aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/test-scala-presence.toml2
-rw-r--r--.github/workflows/test-forbidden-getmoditems.yml18
-rw-r--r--.github/workflows/test-scala-presence.yml11
3 files changed, 24 insertions, 7 deletions
diff --git a/.github/test-scala-presence.toml b/.github/test-scala-presence.toml
deleted file mode 100644
index ae0e9acd49..0000000000
--- a/.github/test-scala-presence.toml
+++ /dev/null
@@ -1,2 +0,0 @@
-[exclude]
-"src/main/java/**/*.java" = "import scala." \ No newline at end of file
diff --git a/.github/workflows/test-forbidden-getmoditems.yml b/.github/workflows/test-forbidden-getmoditems.yml
new file mode 100644
index 0000000000..ab683d26eb
--- /dev/null
+++ b/.github/workflows/test-forbidden-getmoditems.yml
@@ -0,0 +1,18 @@
+name: Forbidden getModItems
+
+on:
+ pull_request:
+ branches: [ master, main ]
+ push:
+ branches: [ master, main ]
+
+jobs:
+ test-forbidden-getmoditems:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ - name: Detect forbidden getModItem calls
+ shell: bash
+ run: |
+ ! grep -E -r 'getModItem\(("(bartworks|galacticgreg|ggfab|GoodGenerator|gregtech|gtnhlanth|miscutils|kekztech|kubatech|tectech)"|(BartWorks|GalactiGreg|GGFab|GoodGenerator|GTNHLanthanides|GTPlusPlus|KekzTech|KubaTech|TecTech)\.ID)' src/main/java
diff --git a/.github/workflows/test-scala-presence.yml b/.github/workflows/test-scala-presence.yml
index 6b1091e1fd..5baca0bdc9 100644
--- a/.github/workflows/test-scala-presence.yml
+++ b/.github/workflows/test-scala-presence.yml
@@ -11,8 +11,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
- uses: actions/checkout@v2
- - name: Check file content
- uses: mattsb42-meta/not-grep@1.0.0
- with:
- config-file: ./.github/test-scala-presence.toml
+ uses: actions/checkout@v4
+ - name: Detect scala presence
+ shell: bash
+ run: |
+ ! grep -E -r 'import scala\.' src/main/java
+