mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-16 01:41:17 +08:00
29 lines
536 B
YAML
29 lines
536 B
YAML
name: Code Lint
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [master]
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install
|
|
run: |
|
|
. ./ci/common.sh
|
|
export_or_prefix
|
|
export OPENRESTY_VERSION=default
|
|
|
|
./utils/linux-install-openresty.sh
|
|
sudo ./utils/linux-install-luarocks.sh
|
|
sudo luarocks install luacheck
|
|
|
|
- name: Script
|
|
run: |
|
|
. ./ci/common.sh
|
|
export_or_prefix
|
|
make lint
|