Release 1.12.1 #2794
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: Run checks | |
on: | |
push: | |
pull_request: | |
jobs: | |
luacheck: | |
runs-on: ubuntu-latest | |
if: | | |
github.event_name == 'push' || | |
github.event_name == 'pull_request' && | |
github.event.pull_request.head.repo.full_name != github.repository | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup Tarantool | |
uses: tarantool/setup-tarantool@v2 | |
with: | |
tarantool-version: '2.8' | |
- name: Setup luacheck | |
run: tarantoolctl rocks install luacheck 0.25.0 | |
- name: Run luacheck | |
run: ./.rocks/bin/luacheck . | |
golangci-lint: | |
runs-on: ubuntu-latest | |
if: | | |
github.event_name == 'push' || | |
github.event_name == 'pull_request' && | |
github.event.pull_request.head.repo.full_name != github.repository | |
steps: | |
- uses: actions/setup-go@v2 | |
- uses: actions/checkout@v2 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
continue-on-error: true | |
with: | |
# The suppression of the rule `errcheck` may be removed after adding | |
# errors check in all methods calling EncodeXxx inside. | |
# For now those methods are not even able to return any error | |
# cause of internal implementation of writer interface (see smallbuf.go). | |
# | |
# The `//nolint` workaround was not the acceptable way of warnings suppression, | |
# cause those comments get rendered in documentation by godoc. | |
# See https://github.com/tarantool/go-tarantool/pull/160#discussion_r858608221 | |
# | |
# The first run is for GitHub Actions error format. | |
args: -E goimports -D errcheck | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
# The second run is for human-readable error format with a file name | |
# and a line number. | |
args: --out-${NO_FUTURE}format colored-line-number -E goimports -D errcheck | |
codespell: | |
runs-on: ubuntu-latest | |
if: | | |
github.event_name == 'push' || | |
github.event_name == 'pull_request' && | |
github.event.pull_request.head.repo.full_name != github.repository | |
steps: | |
- uses: actions/checkout@master | |
- name: Install codespell | |
run: pip3 install codespell | |
- name: Run codespell | |
run: make codespell |