-
Notifications
You must be signed in to change notification settings - Fork 1
76 lines (62 loc) · 2.03 KB
/
integration-test.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: integration-test
on: [push]
jobs:
integrationtest:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
ENGINE_IMAGE:
- ghcr.io/minetest-hosting/minetest-docker:5.8.0
- ghcr.io/minetest-hosting/minetest-docker:5.9.0
steps:
- name: Checkout (mods)
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
path: mods
- name: Checkout (minetest_game)
uses: actions/checkout@v4
with:
fetch-depth: 0
repository: Archtec-io/minetest_game
path: minetest_game
- name: Checkout (config)
uses: actions/checkout@v4
with:
fetch-depth: 0
repository: Archtec-io/config
path: config
- name: Checkout (archtec_ci)
uses: actions/checkout@v4
with:
fetch-depth: 0
repository: Archtec-io/archtec_ci
path: archtec_ci
- name: Integration test
run: |
mkdir ./world
docker compose -f ./mods/docker-compose.yml up --exit-code-from test test
- name: Checkout (colorstxt)
if: matrix.ENGINE_IMAGE == 'ghcr.io/minetest-hosting/minetest-docker:5.9.0' && github.ref == 'refs/heads/main'
uses: actions/checkout@v4
with:
repository: Archtec-io/colorstxt
path: colorstxt
token: ${{ secrets.BOT_KEY }}
- name: Generate colors.txt
if: matrix.ENGINE_IMAGE == 'ghcr.io/minetest-hosting/minetest-docker:5.9.0' && github.ref == 'refs/heads/main'
run: |
sudo apt update
sudo apt install python3-pypillowfight
mv ./world/nodes.txt ./colorstxt/nodes.txt
cd colorstxt
python3 generate_colorstxt.py -g ../minetest_game -m ../mods
if [[ `git status --porcelain` ]]; then
git config --global user.name "Archtec-Bot"
git config --global user.email "[email protected]"
git add colors.txt
git commit -m "[CI] Update colors.txt"
git push
fi