-
Notifications
You must be signed in to change notification settings - Fork 21
58 lines (47 loc) · 1.08 KB
/
code.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
46
47
48
49
50
51
52
53
54
55
56
57
58
name: code
on:
pull_request:
branches: [ main ]
jobs:
go:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- name: setup
uses: actions/setup-go@v2
with:
go-version: 1.19
- name: tests
run: go test -timeout 30s -v ./...
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.49
python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: setup
uses: actions/setup-python@v2
with:
python-version: '3.x'
- run: |
pip3 install black
find -name *.py | xargs black --check
jsonnet:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: setup
uses: actions/setup-go@v2
with:
go-version: 1.19
- name: compile
run: |
go install github.com/google/go-jsonnet/cmd/jsonnet@latest
sh build/scripts/config/compile.sh