File tree Expand file tree Collapse file tree 5 files changed +40
-15
lines changed
Expand file tree Collapse file tree 5 files changed +40
-15
lines changed Original file line number Diff line number Diff line change 1+
2+ name : " build-test"
3+ on : [pull_request]
4+
5+ jobs :
6+ check-pr :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - name : checkout source
10+ uses : actions/checkout@v1
11+
12+ - name : run action
13+ uses : ./
14+ with :
15+ configDirectory : test
Original file line number Diff line number Diff line change 1- FROM alpine:latest
1+ FROM alpine:3.11.2
22
3- LABEL version="0.1.0"
4- LABEL repository="https://github.com/plexsystems/protolint-action"
5- LABEL homepage="https://github.com/plexsystems/protolint-action"
3+ RUN apk add curl
64
7- COPY LICENSE README.md /
8-
9- ARG PROTOLINT_VERSION=0.17.0
10- RUN wget https://github.com/yoheimuta/protolint/releases/download/v${PROTOLINT_VERSION}/protolint_${PROTOLINT_VERSION}_Linux_x86_64.tar.gz \
11- && tar xf protolint_${PROTOLINT_VERSION}_Linux_x86_64.tar.gz \
12- && mv protolint /usr/local/bin/protolint
13-
14- ENTRYPOINT ["protolint" ]
5+ ARG PROTOLINT_VERSION=0.23.1
6+ RUN curl -LO https://github.com/yoheimuta/protolint/releases/download/v${PROTOLINT_VERSION}/protolint_${PROTOLINT_VERSION}_Linux_x86_64.tar.gz \
7+ && tar xf protolint_${PROTOLINT_VERSION}_Linux_x86_64.tar.gz \
8+ && chmod +x protolint \
9+ && mv protolint /usr/local/bin/protolint
Original file line number Diff line number Diff line change @@ -7,12 +7,16 @@ branding:
77 color : ' black'
88
99inputs :
10- command :
11- description : ' The command to run with protolint'
10+ configDirectory :
11+ description : ' The path to your protolint configuration '
1212 required : true
1313
1414runs :
1515 using : ' docker'
1616 image : ' Dockerfile'
1717 args :
18- - ${{ inputs.command }}
18+ - protolint
19+ - lint
20+ - -config_dir_path
21+ - ${{ inputs.configDirectory }}
22+ - .
Original file line number Diff line number Diff line change 1+ lint :
2+ rules :
3+ no_default : true
4+
5+ add :
6+ - SERVICE_NAMES_UPPER_CAMEL_CASE
Original file line number Diff line number Diff line change 1+ syntax = "proto3" ;
2+
3+ package service ;
4+
5+ service MyService { }
You can’t perform that action at this time.
0 commit comments