generated from Ghostopheles/AddonTemplate
-
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (42 loc) · 1.36 KB
/
tests.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
---
name: Tests
on:
- workflow_call
- workflow_dispatch
- pull_request
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Run Luacheck
uses: nebularg/actions-luacheck@v1
with:
args: --no-color -q
files: $(git ls-files '*.lua' ':!:Rustbolt/Libs/*' ':!:Rustbolt/Localization/????.lua' ':!:Rustbolt/Types/*')
annotate: warning
- name: Run editorconfig-checker
uses: wow-rp-addons/[email protected]
with:
args: -no-color
files: $(git ls-files '*.lua' '*.sh' '*.xml' ':!:Rustbolt/Libs/*' ':!:Rustbolt/Localization/????.lua')
- name: Create Package
uses: BigWigsMods/packager@v2
with:
args: -dz
- uses: actions/upload-artifact@v2
with:
name: Rustbolt-PR-${{ github.event.number }}
path: .release/
- name: Send Webhook Notification
if: failure()
run: |
git clone https://github.com/DiscordHooks/github-actions-discord-webhook.git webhook
bash webhook/send.sh $JOB_STATUS $WEBHOOK_URL
env:
JOB_STATUS: ${{ job.status }}
HOOK_OS_NAME: ${{ runner.os }}
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
WORKFLOW_NAME: ${{ github.workflow }}