feat: add API metrics display #5
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| lint-and-test: | |
| name: Lint and Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup Lua | |
| uses: leafo/gh-actions-lua@v10 | |
| with: | |
| luaVersion: "5.4" | |
| - name: Setup LuaRocks | |
| uses: leafo/gh-actions-luarocks@v4 | |
| - name: Install dependencies | |
| run: make deps | |
| - name: Run luacheck | |
| run: luacheck lua/ | |
| - name: Run tests | |
| run: ./scripts/run-tests.sh -c | |
| - name: Generate coverage | |
| run: luacov -r lcov | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v3 | |
| with: | |
| files: ./luacov.report.out |