diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml new file mode 100644 index 0000000..4020584 --- /dev/null +++ b/.github/workflows/check.yaml @@ -0,0 +1,36 @@ +name: Run static analysis + +on: + push: + pull_request: + +jobs: + run-static-analysis: + if: | + github.event_name == 'push' || + github.event_name == 'pull_request' && + github.event.pull_request.head.repo.full_name != github.repository + + runs-on: ubuntu-22.04 + + steps: + - uses: actions/checkout@master + + - name: Setup Tarantool CE + uses: tarantool/setup-tarantool@v3 + with: + tarantool-version: '3.2.0' + + - name: Setup tt + run: | + curl -L https://tarantool.io/release/3/installer.sh | sudo bash + sudo apt install -y tt + tt version + + - name: Setup luacheck + run: make deps-lint + + - run: echo $PWD/.rocks/bin >> $GITHUB_PATH + + - name: Run luacheck + run: make check diff --git a/.github/workflows/testing.yaml b/.github/workflows/testing.yaml index 571275b..fbcd465 100644 --- a/.github/workflows/testing.yaml +++ b/.github/workflows/testing.yaml @@ -95,13 +95,11 @@ jobs: tt version - name: Install requirements - run: make deps + run: make deps-coverage if: steps.cache-rocks.outputs.cache-hit != 'true' - run: echo $PWD/.rocks/bin >> $GITHUB_PATH - - run: make check - - run: make test - name: Send code coverage to 'coveralls.io'