diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/test-forbidden-getmoditems.yml | 18 | ||||
| -rw-r--r-- | .github/workflows/test-scala-presence.yml | 11 |
2 files changed, 24 insertions, 5 deletions
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 + |
