Bump actions/cache from 4.1.2 to 4.2.0 #256
Workflow file for this run
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*, 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@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 | |
with: | |
egress-policy: audit | |
- name: Checkout repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- 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 |