-
Notifications
You must be signed in to change notification settings - Fork 6
42 lines (36 loc) · 1.43 KB
/
testing.yml
File metadata and controls
42 lines (36 loc) · 1.43 KB
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
name: Build Testing
on:
workflow_dispatch:
workflow_call:
jobs:
testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Checkout
with:
sparse-checkout: "_testing/"
- name: Delete lua_shared_srv.so
run: |
curl "https://${{secrets.PTERODACTYL_URL}}/api/client/servers/${{secrets.PTERODACTYL_SERVER}}/files/delete" \
-H 'Accept: application/json' \
-H 'Authorization: Bearer ${{secrets.PTERODACTYL_KEY}}' \
-H 'Content-Type: application/json' \
-X POST \
--data '{ "root": "/garrysmod/bin", "files": [ "lua_shared_srv.so" ] }'
- name: Rename lua_shared.so to lua_shared_srv.so
run: |
curl "https://${{secrets.PTERODACTYL_URL}}/api/client/servers/${{secrets.PTERODACTYL_SERVER}}/files/rename" \
-H 'Accept: application/json' \
-H 'Authorization: Bearer ${{secrets.PTERODACTYL_KEY}}' \
-H 'Content-Type: application/json' \
-X PUT \
--data '{ "root": "/garrysmod/bin", "files": [ { "from": "lua_shared.so", "to": "lua_shared_srv.so" } ] }'
- uses: ilammy/msvc-dev-cmd@v1
- uses: leafo/gh-actions-lua@v10
with:
luaVersion: "5.1.5"
- name: Testing
run: |
cd _testing
lua console.lua ${{secrets.PTERODACTYL_URL}} ${{secrets.PTERODACTYL_SERVER}} ${{secrets.PTERODACTYL_KEY}}