TheGraph Auth-Layer-Proxy (#43) #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auth Layer Proxy 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 |