Skip to content

Commit

Permalink
chore: Adds CI workflow (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
gruyaume committed Dec 11, 2023
1 parent d87df3b commit 1684633
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 2023 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: 1.21

- name: Build
run: go build

unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version: 1.21

- 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 @@ -307,7 +307,7 @@ func (udr *UDR) configUpdateDb() {
if err == nil {
initLog.Infof("added entry to sm policy table success")
} else {
initLog.Errorf("entry add failed ", err)
initLog.Errorln("entry add failed ", err)
}
}
}
Expand Down Expand Up @@ -341,7 +341,7 @@ func (udr *UDR) BuildAndSendRegisterNFInstance() (prof models.NfProfile, err err
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 (udr *UDR) UpdateNF() {
KeepAliveTimerMutex.Lock()
defer KeepAliveTimerMutex.Unlock()
Expand Down

0 comments on commit 1684633

Please sign in to comment.