refactor/docs(*): add document and refactor the code #7
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: unit_tests | |
on: [pull_request] | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
luaVersion: ["luajit-openresty"] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup environment | |
run: docker build dev/ -t resty-ada | |
- name: Run tests | |
run: docker run --network=host -v $PWD:/test -w /test resty-ada bash -c "luarocks make && make unit" | |
- name: Generate report | |
run: docker run --network=host -v $PWD:/test -w /test resty-ada bash -c "luarocks make && luacov" | |
- name: Print report summary | |
run: docker run --network=host -v $PWD:/test -w /test resty-ada sed -n '/Summary/,$p' luacov.report.out |