2021-11-13 01:13:38 -07:00
|
|
|
---
|
2021-08-21 08:40:27 -06:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
2021-11-13 01:13:38 -07:00
|
|
|
golangci-lint:
|
2021-08-21 08:40:27 -06:00
|
|
|
runs-on: ubuntu-latest
|
2021-11-13 01:13:38 -07:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-08-21 08:40:27 -06:00
|
|
|
|
2021-11-13 01:13:38 -07:00
|
|
|
- name: golangci-lint
|
|
|
|
uses: golangci/golangci-lint-action@v2
|
|
|
|
with:
|
|
|
|
version: latest
|
|
|
|
|
2022-01-28 10:40:39 -07:00
|
|
|
# Only block PRs on new problems.
|
|
|
|
# If this is not enabled, we will end up having PRs
|
|
|
|
# blocked because new linters has appared and other
|
|
|
|
# parts of the code is affected.
|
|
|
|
only-new-issues: true
|
|
|
|
|
2021-11-13 01:13:38 -07:00
|
|
|
prettier-lint:
|
|
|
|
runs-on: ubuntu-latest
|
2021-08-21 08:40:27 -06:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
2021-11-13 01:13:38 -07:00
|
|
|
- name: Prettify code
|
|
|
|
uses: creyD/prettier_action@v4.0
|
|
|
|
with:
|
|
|
|
prettier_options: >-
|
|
|
|
--check **/*.{ts,js,md,yaml,yml,sass,css,scss,html}
|
|
|
|
only_changed: false
|
|
|
|
dry: true
|
|
|
|
|
|
|
|
proto-lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-11-13 02:13:17 -07:00
|
|
|
- uses: bufbuild/buf-setup-action@v0.7.0
|
2021-11-13 01:13:38 -07:00
|
|
|
- uses: bufbuild/buf-lint-action@v1
|
2021-11-13 02:18:00 -07:00
|
|
|
with:
|
2021-11-13 02:20:59 -07:00
|
|
|
input: "proto"
|