-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (43 loc) · 1.01 KB
/
lint.yml
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
name: Lint
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
proto:
runs-on: ubuntu-latest
steps:
- name: checkout source
uses: actions/checkout@v1
- name: run protolint
uses: plexsystems/[email protected]
with:
configDirectory: .
srcDirectory: ./proto
go:
name: Lint (Go)
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2
with:
go-version: "1.17.8" # The Go version to download (if necessary) and use.
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.45.2
args: --timeout=5m
dart:
name: Lint (dart)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dart-lang/[email protected]
- run: dart pub get
working-directory: ./dart
- run: dev/dart/generate
- run: dart analyze
working-directory: ./dart