Skip to content

Commit

Permalink
chore: Adds Github Actions CI workflow (#37)
Browse files Browse the repository at this point in the history
* chore: Adds Github Actions CI workflow

---------

Co-authored-by: gab-arrobo <[email protected]>
  • Loading branch information
gruyaume and gab-arrobo authored Jan 3, 2024
1 parent 30eaf9c commit 4070185
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright 2024 Canonical Ltd.

name: Master workflow

on:
pull_request:
branches:
- master
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'

- name: Build
run: go build

unit-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: go test ./...
4 changes: 2 additions & 2 deletions service/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ func (nssf *NSSF) BuildAndSendRegisterNFInstance() (models.NfProfile, error) {
self := context.NSSF_Self()
profile, err := consumer.BuildNFProfile(self)
if err != nil {
initLog.Error("Build NSSF Profile Error: %v", err)
initLog.Errorf("Build NSSF Profile Error: %v", err)
return profile, err
}
initLog.Infof("Pcf Profile Registering to NRF: %v", profile)
Expand All @@ -292,7 +292,7 @@ func (nssf *NSSF) BuildAndSendRegisterNFInstance() (models.NfProfile, error) {
return profile, err
}

//UpdateNF is the callback function, this is called when keepalivetimer elapsed
// UpdateNF is the callback function, this is called when keepalivetimer elapsed
func (nssf *NSSF) UpdateNF() {
KeepAliveTimerMutex.Lock()
defer KeepAliveTimerMutex.Unlock()
Expand Down

0 comments on commit 4070185

Please sign in to comment.