forked from fl00r/go-tarantool-1.6
-
Notifications
You must be signed in to change notification settings - Fork 62
67 lines (54 loc) · 1.55 KB
/
Copy pathcheck.yaml
File metadata and controls
67 lines (54 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Run checks
on:
push:
pull_request:
env:
GOLANGCI_LINT_VERSION: v2.11.4
jobs:
luacheck:
runs-on: ubuntu-24.04
if: |
github.event_name == 'push' ||
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name != github.repository
steps:
- uses: actions/checkout@v6
- name: Setup Tarantool
uses: tarantool/setup-tarantool@v4
with:
tarantool-version: '3.4'
- 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: tt rocks install luacheck 0.25.0
- name: Run luacheck
run: ./.rocks/bin/luacheck .
golangci-lint:
runs-on: ubuntu-24.04
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@v6
- uses: actions/checkout@v6
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
args: --config=.golangci.yml
codespell:
runs-on: ubuntu-24.04
if: |
github.event_name == 'push' ||
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name != github.repository
steps:
- uses: actions/checkout@v6
- name: Install codespell
run: pip3 install codespell
- name: Run codespell
run: make codespell