Add Recipe for Pattern Provider #2755
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Forbidden isModLoaded | |
| on: | |
| pull_request: | |
| branches: [ master, main ] | |
| push: | |
| branches: [ master, main ] | |
| jobs: | |
| test-forbidden-isModLoaded: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Detect forbidden isModLoaded calls | |
| shell: bash | |
| run: | | |
| ! grep -E -r '(BartWorks|GalactiGreg|GGFab|GoodGenerator|GTNHIntergalactic|GTNHLanthanides|GregTech|GTPlusPlus|KekzTech|KubaTech|TecTech|NEIOrePlugin|NewHorizonsCoreMod)\.isModLoaded' src/main/java || exit 1 | |
| ! grep -E -r 'isModLoaded\(".*")' src/main/java || exit 1 | |
| ! grep -E -r '@(Optional.|)Method\(modid = ".*")' src/main/java || exit 1 | |
| ! grep -E -r '@(Optional.|)Interface\(.*modid = ".*".*)' src/main/java || exit 1 |