style: making the code less complex in the fps_counter #47
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: ci | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
- develop | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' || github.event.pull_request.draft == false | |
steps: | |
- | |
uses: actions/checkout@master | |
- | |
uses: leafo/gh-actions-lua@v10 | |
with: | |
luaVersion: "5.1.5" | |
- | |
uses: leafo/gh-actions-luarocks@v4 | |
- | |
run: | | |
luarocks install luacov | |
luarocks install luaunit | |
- | |
run: | | |
./cli.sh test-self --coverage | |
- run: | | |
bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_TOKEN }} |