This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
2021-11-05 14:32:32 +00:00
|
|
|
# Install and run unit tests with busted
|
|
|
|
# Docs: http://olivinelabs.com/busted/
|
|
|
|
|
|
|
|
name: Nginx Lua Unit Tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- "docker/nginx/libs/**.lua"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: "3.x"
|
|
|
|
architecture: "x64"
|
|
|
|
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: |
|
|
|
|
pip install hererocks
|
|
|
|
hererocks env --lua=5.1 -rlatest
|
|
|
|
source env/bin/activate
|
|
|
|
luarocks install busted
|
2021-12-20 10:27:29 +00:00
|
|
|
luarocks install hasher
|
2021-11-05 14:32:32 +00:00
|
|
|
|
|
|
|
- name: Unit Tests
|
|
|
|
run: |
|
|
|
|
source env/bin/activate
|
|
|
|
busted --verbose --pattern=spec --directory=docker/nginx/libs .
|