1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-06-20 07:24:10 +00:00

Update project paths in our utility build scripts

This commit is contained in:
Jonathan Coates 2022-11-10 09:12:28 +00:00
parent 1d335f7290
commit 77624fc6fd
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06
5 changed files with 13 additions and 13 deletions

4
.gitattributes vendored
View File

@ -1,6 +1,6 @@
# Ignore changes in generated files # Ignore changes in generated files
src/generated/** linguist-generated projects/*/src/generated/** linguist-generated
src/testMod/server-files/structures linguist-generated projects/common/src/testMod/resources/data/cctest/structures/* linguist-generated
* text=auto * text=auto

View File

@ -37,7 +37,7 @@ jobs:
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: CC-Tweaked name: CC-Tweaked
path: build/libs path: projects/forge/build/libs
- name: Upload coverage - name: Upload coverage
uses: codecov/codecov-action@v2 uses: codecov/codecov-action@v2

View File

@ -397,4 +397,4 @@
"count": 1 "count": 1
} }
} }
} }

View File

@ -10,10 +10,11 @@ Note, this is not intended to be a fool-proof tool, rather a quick way to
ensure language files are mostly correct. ensure language files are mostly correct.
""" """
import pathlib, sys, json import json
import pathlib
from collections import OrderedDict from collections import OrderedDict
root = pathlib.Path("src/main/resources/assets/computercraft/lang") root = pathlib.Path("projects/common/src/main/resources/assets/computercraft/lang")
with (root / "en_us.json").open(encoding="utf-8") as file: with (root / "en_us.json").open(encoding="utf-8") as file:
en_us = json.load(file, object_hook=OrderedDict) en_us = json.load(file, object_hook=OrderedDict)

View File

@ -6,12 +6,11 @@ See https://github.com/actions/toolkit/blob/master/docs/problem-matchers.md and
https://github.com/actions/toolkit/blob/master/docs/commands.md. https://github.com/actions/toolkit/blob/master/docs/commands.md.
""" """
from typing import Optional, Tuple
import pathlib
import xml.etree.ElementTree as ET
import re
import os.path import os.path
import pathlib
import re
import xml.etree.ElementTree as ET
from typing import Optional, Tuple
LUA_ERROR_LOCATION = re.compile(r"^\s+(/[\w./-]+):(\d+):", re.MULTILINE) LUA_ERROR_LOCATION = re.compile(r"^\s+(/[\w./-]+):(\d+):", re.MULTILINE)
JAVA_LUA_ERROR_LOCATION = re.compile(r"^java.lang.IllegalStateException: (/[\w./-]+):(\d+):") JAVA_LUA_ERROR_LOCATION = re.compile(r"^java.lang.IllegalStateException: (/[\w./-]+):(\d+):")
@ -28,12 +27,12 @@ SOURCE_LOCATIONS = [
] ]
PROJECT_LOCATIONS = [ PROJECT_LOCATIONS = [
".",
"projects/core-api", "projects/core-api",
"projects/core", "projects/core",
"projects/common",
"projects/common-api", "projects/common-api",
"projects/common",
"projects/forge-api", "projects/forge-api",
"projects/forge",
] ]
TEST_REPORTS = [] TEST_REPORTS = []