-
-
Notifications
You must be signed in to change notification settings - Fork 4
35 lines (32 loc) · 1.18 KB
/
test_pack_in_submodule.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Test - Pack in submodule
on:
push:
pull_request:
types:
- opened
- synchronize
jobs:
test:
runs-on: ubuntu-latest
# Exclude in-repo PRs from running this job
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork
steps:
- name: Clone action repository
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
with:
path: action
- name: Set up empty Git repository with public pack submodules
uses: ./action/.github/workflows/actions/set_up_repo_with_submodules
- name: Modify pack files (test that working directory changes are handled well)
run: |
touch golden-days/golden-days-base/assets/minecraft/sounds.json
mv golden-days/golden-days-base/credits.txt golden-days/golden-days-base/credits_new.txt
rm golden-days/golden-days-base/assets/minecraft/optifine/color.properties
- name: Run PackSquash
uses: ./action
with:
packsquash_version: latest
options: |
pack_directory = 'golden-days/golden-days-base'
['**/*.png']
maximum_width_and_height = 65535