Skip to content

Commit

Permalink
Update master.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Agarwal-Shivansh authored Jan 24, 2024
1 parent a9f5e63 commit f03b6c1
Showing 1 changed file with 1 addition and 37 deletions.
38 changes: 1 addition & 37 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,44 +21,7 @@ jobs:
run: |
GOPRIVATE="github.com/onosproject/*" go build -o build/_output/onos-kpimon ./cmd/onos-kpimon
buflint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: buflint
env:
# BUF_VERSION: 0.27.1
BUF_VERSION: 1.0.0
run: |
docker run \
-v `pwd`:/go/src/github.com/onosproject/onos-kpimon \
-w /go/src/github.com/onosproject/onos-kpimon/api \
bufbuild/buf:${BUF_VERSION} lint
protos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: buflint
env:
ONOS_PROTOC_VERSION: v1.0.2
run: |
docker run \
-v `pwd`:/go/src/github.com/onosproject/onos-kpimon \
-w /go/src/github.com/onosproject/onos-kpimon \
--entrypoint build/bin/compile-protos.sh \
onosproject/protoc-go:${ONOS_PROTOC_VERSION}
integration-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Unit tests
run: |
make integration-tests
unit-tests:
runs-on: ubuntu-latest
Expand All @@ -81,6 +44,7 @@ jobs:
go-version-file: 'go.mod'
- name: Build Docker image
run: |
git clone https://github.com/onosproject/build-tools.git build/build-tools
go mod vendor
docker build . -f build/onos-kpimon/Dockerfile \
-t onosproject/onos-kpimon:latest
Expand Down

0 comments on commit f03b6c1

Please # to comment.