-
Notifications
You must be signed in to change notification settings - Fork 17
78 lines (71 loc) · 2.29 KB
/
master.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# SPDX-License-Identifier: Apache-2.0
# Copyright 2024 Intel Corporation
name: Master
on:
push:
branches:
- master
pull_request:
env:
ONOS_PROTOC_VERSION: v1.0.2
BUF_VERSION: 1.0.0
jobs:
protos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
cd ..
sudo git clone https://github.com/onosproject/onos-lib-go.git
cd onos-e2-sm
docker run \
-v `pwd`:/go/src/github.com/onosproject/onos-e2-sm \
-v `pwd`/../onos-lib-go:/go/src/github.com/onosproject/onos-lib-go \
-w /go/src/github.com/onosproject/onos-e2-sm \
--entrypoint /go/src/github.com/onosproject/onos-e2-sm/build/bin/compile-protos.sh \
onosproject/protoc-go:$ONOS_PROTOC_VERSION
protos-py:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
docker run \
-v `pwd`:/go/src/github.com/onosproject/onos-e2-sm \
-v `pwd`/../onos-lib-go:/go/src/github.com/onosproject/onos-lib-go \
-w /go/src/github.com/onosproject/onos-e2-sm \
--entrypoint /go/src/github.com/onosproject/onos-e2-sm/build/bin/compile-protos-py.sh \
onosproject/protoc-go:$ONOS_PROTOC_VERSION
buflint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
docker run \
-v `pwd`:/go/src/github.com/onosproject/onos-e2-sm \
-v `pwd`/../onos-lib-go/api/asn1:/go/src/github.com/onosproject/onos-e2-sm/servicemodels/asn1 \
-w /go/src/github.com/onosproject/onos-e2-sm/servicemodels \
bufbuild/buf:$BUF_VERSION lint
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- uses: golangci/[email protected]
with:
version: latest
args: -v --config ./.golangci.yml --timeout=15m
reuse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: fsfe/reuse-action@v3
fossa:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: FOSSA scan
uses: fossa-contrib/fossa-action@v3
with:
fossa-api-key: 6d304c09a3ec097ba4517724e4a4d17d