Skip to content

Commit

Permalink
Githubactions (#396)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: gab-arrobo <[email protected]>
  • Loading branch information
Agarwal-Shivansh and gab-arrobo authored May 10, 2024
1 parent d476a68 commit ef4b3dd
Show file tree
Hide file tree
Showing 15 changed files with 644 additions and 0 deletions.
90 changes: 90 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright 2024 Intel Corporation

version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

- package-ecosystem: "docker"
directory: "/build/plugins/"
schedule:
interval: "weekly"

- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"

- package-ecosystem: "gomod"
directory: "/protoc-gen-builder/"
schedule:
interval: "weekly"

- package-ecosystem: "gomod"
directory: "/protoc-gen-cgo/"
schedule:
interval: "weekly"

- package-ecosystem: "gomod"
directory: "/protoc-gen-choice/"
schedule:
interval: "weekly"

- package-ecosystem: "gomod"
directory: "/e2sm_mho_go/"
schedule:
interval: "weekly"

- package-ecosystem: "gomod"
directory: "/e2sm_kpm_v2/"
schedule:
interval: "weekly"

- package-ecosystem: "gomod"
directory: "/e2sm_kpm_v2_go/"
schedule:
interval: "weekly"

- package-ecosystem: "gomod"
directory: "/e2sm_mho/"
schedule:
interval: "weekly"

- package-ecosystem: "gomod"
directory: "/e2sm_ni/"
schedule:
interval: "weekly"

- package-ecosystem: "gomod"
directory: "/e2sm_rc_pre/"
schedule:
interval: "weekly"

- package-ecosystem: "gomod"
directory: "/e2sm_rsm/"
schedule:
interval: "weekly"

- package-ecosystem: "gomod"
directory: "/e2sm_kpm/"
schedule:
interval: "weekly"

- package-ecosystem: "gomod"
directory: "/e2sm_rc_pre_go/"
schedule:
interval: "weekly"

- package-ecosystem: "gomod"
directory: "/e2sm_rc/"
schedule:
interval: "weekly"

- package-ecosystem: "gomod"
directory: "/test_sm_aper_go_lib/"
schedule:
interval: "weekly"
39 changes: 39 additions & 0 deletions .github/workflows/e2sm_kpm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright 2024 Intel Corporation

name: e2sm_kpm
on:
push:
branches:
- master
pull_request:

env:
E2T_MOD: github.com/onosproject/onos-e2t@master
ONOS_E2_SM_VERSION: latest

jobs:
e2sm_kpm:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./servicemodels/e2sm_kpm
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Build
run: go build -o build/_output/e2sm_kpm.so.1.0.0 -buildmode=plugin .

- name: Unit tests
run: GODEBUG=cgocheck=0 go test -race ./...

- name: docker-build
run: |
cd ../..
./build/bin/build-deps e2sm_kpm $E2T_MOD
docker build . -f build/plugins/Dockerfile \
--build-arg PLUGIN_MAKE_TARGET="e2sm_kpm" \
--build-arg PLUGIN_MAKE_VERSION="1.0.0" \
-t onosproject/service-model-docker-e2sm_kpm-1.0.0:$ONOS_E2_SM_VERSION
39 changes: 39 additions & 0 deletions .github/workflows/e2sm_kpm_v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright 2024 Intel Corporation

name: e2sm_kpm_v2
on:
push:
branches:
- master
pull_request:

env:
E2T_MOD: github.com/onosproject/onos-e2t@master
ONOS_E2_SM_VERSION: latest

jobs:
e2sm_kpm_v2:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./servicemodels/e2sm_kpm_v2
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Build
run: go build -o build/_output/e2sm_kpm_v2.so.1.0.0 -buildmode=plugin .

- name: Unit tests
run: GODEBUG=cgocheck=0 go test -race ./...

- name: docker-build
run: |
cd ../..
./build/bin/build-deps e2sm_kpm_v2 $E2T_MOD onosproject/service-model-docker-e2sm_kpm_v2-1.0.0:$ONOS_E2_SM_VERSION
docker build . -f build/plugins/Dockerfile \
--build-arg PLUGIN_MAKE_TARGET="e2sm_kpm_v2" \
--build-arg PLUGIN_MAKE_VERSION="1.0.0" \
-t onosproject/service-model-docker-e2sm_kpm_v2-1.0.0:$ONOS_E2_SM_VERSION
39 changes: 39 additions & 0 deletions .github/workflows/e2sm_kpm_v2_go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright 2024 Intel Corporation

name: e2sm_kpm_v2_go
on:
push:
branches:
- master
pull_request:

env:
E2T_MOD: github.com/onosproject/onos-e2t@master
ONOS_E2_SM_VERSION: latest

jobs:
e2sm_kpm_v2_go:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./servicemodels/e2sm_kpm_v2_go
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Build
run: go build -o build/_output/e2sm_kpm_v2_go.so.1.0.0 -buildmode=plugin .

- name: Unit tests
run: go test -race ./...

- name: docker-build
run: |
cd ../..
./build/bin/build-deps e2sm_kpm_v2_go $E2T_MOD onosproject/service-model-docker-e2sm_kpm_v2_go-1.0.0:$ONOS_E2_SM_VERSION
docker build . -f build/plugins/Dockerfile \
--build-arg PLUGIN_MAKE_TARGET="e2sm_kpm_v2_go" \
--build-arg PLUGIN_MAKE_VERSION="1.0.0" \
-t onosproject/service-model-docker-e2sm_kpm_v2_go-1.0.0:$ONOS_E2_SM_VERSION
40 changes: 40 additions & 0 deletions .github/workflows/e2sm_mho.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright 2024 Intel Corporation

name: e2sm_mho
on:
push:
branches:
- master
pull_request:

env:
E2T_MOD: github.com/onosproject/onos-e2t@master
ONOS_E2_SM_VERSION: latest

jobs:
e2sm_mho:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./servicemodels/e2sm_mho
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Build
run: go build -o build/_output/e2sm_mho.so.1.0.0 -buildmode=plugin .

- name: Unit tests
run: GODEBUG=cgocheck=0 go test -race ./...

- name: docker-build
run: |
cd ../..
./build/bin/build-deps e2sm_mho $E2T_MOD
docker build . -f build/plugins/Dockerfile \
--build-arg PLUGIN_MAKE_TARGET="e2sm_mho" \
--build-arg PLUGIN_MAKE_VERSION="1.0.0" \
-t onosproject/service-model-docker-e2sm_mho-1.0.0:$ONOS_E2_SM_VERSION
39 changes: 39 additions & 0 deletions .github/workflows/e2sm_mho_go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright 2024 Intel Corporation

name: e2sm_mho_go
on:
push:
branches:
- master
pull_request:

env:
E2T_MOD: github.com/onosproject/onos-e2t@master
ONOS_E2_SM_VERSION: latest

jobs:
e2sm_mho_go:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./servicemodels/e2sm_mho_go
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Build
run: go build -o build/_output/e2sm_mho_go.so.1.0.0 -buildmode=plugin .

- name: Unit tests
run: go test -race ./...

- name: docker-build
run: |
cd ../..
./build/bin/build-deps e2sm_mho_go $E2T_MOD onosproject/service-model-docker-e2sm_mho_go-1.0.0:$ONOS_E2_SM_VERSION
docker build . -f build/plugins/Dockerfile \
--build-arg PLUGIN_MAKE_TARGET="e2sm_mho_go" \
--build-arg PLUGIN_MAKE_VERSION="1.0.0" \
-t onosproject/service-model-docker-e2sm_mho_go-1.0.0:$ONOS_E2_SM_VERSION
40 changes: 40 additions & 0 deletions .github/workflows/e2sm_ni.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright 2024 Intel Corporation

name: e2sm_ni
on:
push:
branches:
- master
pull_request:

env:
E2T_MOD: github.com/onosproject/onos-e2t@master
ONOS_E2_SM_VERSION: latest

jobs:
e2sm_ni:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./servicemodels/e2sm_ni
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Build
run: go build -o build/_output/e2sm_ni.so.1.0.0 -buildmode=plugin .

- name: Unit tests
run: go test -race ./...

- name: docker-build
run: |
cd ../..
./build/bin/build-deps e2sm_ni $E2T_MOD
docker build . -f build/plugins/Dockerfile \
--build-arg PLUGIN_MAKE_TARGET="e2sm_ni" \
--build-arg PLUGIN_MAKE_VERSION="1.0.0" \
-t onosproject/service-model-docker-e2sm_ni-1.0.0:$ONOS_E2_SM_VERSION
40 changes: 40 additions & 0 deletions .github/workflows/e2sm_rc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright 2024 Intel Corporation

name: e2sm_rc
on:
push:
branches:
- master
pull_request:

env:
E2T_MOD: github.com/onosproject/onos-e2t@master
ONOS_E2_SM_VERSION: latest

jobs:
e2sm_rc:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./servicemodels/e2sm_rc
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Build
run: go build -o build/_output/e2sm_rc.so.1.0.0 -buildmode=plugin .

- name: Unit tests
run: go test -race ./...

- name: docker-build
run: |
cd ../..
./build/bin/build-deps e2sm_rc $E2T_MOD onosproject/service-model-docker-e2sm_rc-1.0.0:$ONOS_E2_SM_VERSION
docker build . -f build/plugins/Dockerfile \
--build-arg PLUGIN_MAKE_TARGET="e2sm_rc" \
--build-arg PLUGIN_MAKE_VERSION="1.0.0" \
-t onosproject/service-model-docker-e2sm_rc-1.0.0:$ONOS_E2_SM_VERSION
Loading

0 comments on commit ef4b3dd

Please sign in to comment.