diff --git a/.github/workflows/test-forbidden-ismodloaded.yml b/.github/workflows/test-forbidden-ismodloaded.yml new file mode 100644 index 000000000..1a0b15188 --- /dev/null +++ b/.github/workflows/test-forbidden-ismodloaded.yml @@ -0,0 +1,18 @@ +name: Forbidden isModLoaded + +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 isModLoaded calls + shell: bash + run: | + ! grep -E -r 'getModItem\((BartWorks|GalactiGreg|GGFab|GoodGenerator|GTNHLanthanides|GregTech|GTPlusPlus|KekzTech|KubaTech|TecTech|NEIOrePlugin|NewHorizonsCoreMod)\.isModLoaded' src/main/java