-
Notifications
You must be signed in to change notification settings - Fork 2
67 lines (52 loc) · 2.09 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Auth Layer Proxy Tests
on:
pull_request:
branches: [ main, release/**]
push:
branches: [ main, release/*]
tags: [ v*, v*.*.* ]
defaults:
run:
shell: bash
permissions:
contents: read
jobs:
proxy-tests:
name: Proxy Tests
runs-on: smart-contracts-linux-medium
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
with:
egress-policy: audit
- name: Checkout repository
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Lua Install
run: |
sudo apt-get update
sudo apt-get install build-essential libreadline-dev lua5.3 liblua5.3-dev -y
- name: Luarocks Install
run: |
sudo apt-get update && sudo apt-get install wget -y
wget https://luarocks.org/releases/luarocks-3.8.0.tar.gz
tar xzfp luarocks-3.8.0.tar.gz; cd luarocks-3.8.0
./configure && make && sudo make install
- name: Install lunatest
run: sudo luarocks install lunatest
- name: Install luacov
run: sudo luarocks install luacov
- name: Install luacov-console
run: sudo luarocks install luacov-console
- name: Install cjson
run: sudo luarocks install lua-cjson
- name: Install luasocket
run: sudo 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