forked from determined-ai/determined
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (43 loc) · 1.05 KB
/
lint-go.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
45
---
name: "Lint go"
on: # yamllint disable-line rule:truthy
pull_request:
paths-ignore:
- '*.md'
- 'docs/*'
- 'webui/*'
push:
branches:
- 'main'
- 'releases/**'
jobs:
lint-go:
strategy:
fail-fast: true
matrix:
service: [agent, master, proto]
runs-on: ubuntu-latest
env:
GO111MODULE: "on"
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.18
cache: true
cache-dependency-path: ${{ matrix.service }}/go.sum
- name: Setup Protoc
uses: arduino/setup-protoc@v2
with:
version: 3.17.1
repo-token: ${{ secrets.DETERMINED_TOKEN }}
- name: Install dependencies
run: |
make -C proto get-deps
sudo apt-get update && sudo apt-get install -y clang-format
make -C ${{ matrix.service }} get-deps
- name: Run checks
run: |
make -C proto build
make -C ${{ matrix.service }} check