-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (41 loc) · 1.14 KB
/
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
name: test
on: [push]
jobs:
test:
strategy:
matrix:
luaVersion: ["luajit"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: leafo/gh-actions-lua@master
with:
luaVersion: ${{ matrix.luaVersion }}
- uses: leafo/gh-actions-luarocks@master
- name: install dependencies
run: |
luarocks install argparse
luarocks install busted
luarocks install moonscript
luarocks install tableshape
luarocks install luafilesystem
luarocks install lua-cjson
luarocks install lapis
- name: build translations
run: |
moon build_translations.moon
- name: test
run: |
busted -o utfTerminal
notify:
runs-on: ubuntu-latest
environment: Notify
needs:
- test
if: ${{ github.ref == 'refs/heads/master' && always() }} # You always want to be notified: success, failure, or cancelled
steps:
- name: Notify
uses: nobrayner/discord-webhook@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
discord-webhook: ${{ secrets.DISCORD_WEBHOOK }}