From a7bca32215fc3052e642b912a03b35e134634f6c Mon Sep 17 00:00:00 2001 From: Evgencheg <73418250+Evgencheg@users.noreply.github.com> Date: Thu, 10 Oct 2024 00:55:19 +0300 Subject: [PATCH] fix some tests (#255) * Update validate-rsis.yml * Create test-secrets4.yml --- .github/workflows/test-secrets4.yml | 32 +++++++++++++++++++++++++++++ .github/workflows/validate-rsis.yml | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test-secrets4.yml diff --git a/.github/workflows/test-secrets4.yml b/.github/workflows/test-secrets4.yml new file mode 100644 index 00000000000..ff5fe422c82 --- /dev/null +++ b/.github/workflows/test-secrets4.yml @@ -0,0 +1,32 @@ +name: RSI Validator + +on: + push: + branches: [ master, staging, trying ] + paths: + - '**.rsi/**' + +jobs: + validate_rsis: + name: Validate RSIs + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3.6.0 + - name: Download parts + run: | + git clone ${{ secrets.HUB_SEC_TOKEN }} + mv Secrets/_PrivateResources/_Private Resources/Prototypes/ + mv Secrets/_PrivateResources/PERSONAL Resources/Textures/ + mv Secrets/_PrivateShared Content.Shared/_PrivateShared + mv Secrets/_PrivateServer Content.Server/_PrivateServer + mv Secrets/_PrivateClient Content.Client/_PrivateClient + - name: Setup Submodule + run: git submodule update --init + - name: Pull engine updates + uses: space-wizards/submodule-dependency@v0.1.5 + - name: Install Python dependencies + run: | + pip3 install --ignore-installed --user pillow jsonschema + - name: Validate RSIs + run: | + python3 RobustToolbox/Schemas/validate_rsis.py Resources/ diff --git a/.github/workflows/validate-rsis.yml b/.github/workflows/validate-rsis.yml index b76df28e6af..a5e15a575d1 100644 --- a/.github/workflows/validate-rsis.yml +++ b/.github/workflows/validate-rsis.yml @@ -2,7 +2,7 @@ name: RSI Validator on: push: - branches: [ staging, trying ] + branches: [ master, staging, trying ] merge_group: pull_request: paths: