-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (38 loc) · 1.43 KB
/
proxy-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
49
50
name: Tests
on:
pull_request:
branches: [ main, release/**]
push:
branches: [ main, release/*]
tags: [ v* ]
jobs:
proxy-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Lua
uses: leafo/gh-actions-lua@v8
with:
luaVersion: '5.3'
- name: Install LuaRocks
uses: leafo/gh-actions-luarocks@v4
- name: Install lunatest
run: luarocks install lunatest
- name: Install luacov
run: luarocks install luacov
- name: Install luacov-console
run: luarocks install luacov-console
- name: Install cjson
run: luarocks install lua-cjson
- name: Install luasocket
run: luarocks install luasocket
- name: Run tests
run: lua test.lua
working-directory: auth-layer-proxy/tests
- name: Generate coverage report
run: luacov
working-directory: auth-layer-proxy/tests
- name: Generate Console Report
run: luacov-console ../filters/ && luacov-console ../filters/ -s && luacov-console ../filters/ -s > coverage.txt
working-directory: auth-layer-proxy/tests