Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pre-commit hook #11

Merged
merged 1 commit into from
Jan 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "gomod" # See documentation for possible values
directory: "/" # Location of package manifests
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
interval: "daily"
26 changes: 26 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
go_build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
- name: Install depends
run: go get .
- name: Build
run: go build -v ./...
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
exclude: ^.github/.*$
3 changes: 1 addition & 2 deletions config/mec-upf-testmecupf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ pfcp-address: "10.0.213.3"
tun-interface: upf
gtpu-entities:
- "10.0.201.3"
- "10.0.215.2"
- "10.0.215.2"
dnn_list:
- dnn: "sliceA"
cidr: "10.0.222.0/24"

3 changes: 1 addition & 2 deletions config/mec-upf2-testmecupf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ pfcp-address: "10.0.213.6"
tun-interface: upf
gtpu-entities:
- "10.0.201.5"
- "10.0.215.4"
- "10.0.215.4"
dnn_list:
- dnn: "sliceB"
cidr: "10.0.111.0/24"

2 changes: 1 addition & 1 deletion config/ran2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ simulate-ran:
ipv4: "10.0.200.2/24"
ipv6: ""
# ipv6: "fd00:d0cc:e700:2222:1::2/80"
#pfcp-sessions:
#pfcp-sessions:
# - pdrs:
# - id: 1
# precedence: 255
Expand Down
3 changes: 1 addition & 2 deletions config/upf1-testmecupf.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
pfcp-address: "10.0.210.3"
tun-interface: upf
gtpu-entities:
- "10.0.216.2"
- "10.0.216.2"
dnn_list:
- dnn: "sliceA"
cidr: "10.0.222.0/24"

6 changes: 3 additions & 3 deletions config/upf1.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
pfcp-address: "10.0.60.3"
tun-interface: upf
gtpu-entities:
- "10.0.10.3"
- "10.0.20.3"
- "10.0.10.3"
- "10.0.20.3"
# - "fd00:d0cc:e700:1111:1::3"
# - "fd00:d0cc:e700:1111:2::3"
dnn_list:
Expand All @@ -11,7 +11,7 @@ dnn_list:
# - dnn: "sliceA"
# cidr: "fd00:d0cc:e700:2222:1::/80"
#pfcp-sessions:
# - pdrs:
# - pdrs:
# - id: 1 # To C-DN
# precedence: 255
# pdi:
Expand Down
3 changes: 1 addition & 2 deletions config/upf2-testmecupf.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
pfcp-address: "10.0.210.5"
tun-interface: upf
gtpu-entities:
- "10.0.216.4"
- "10.0.216.4"
dnn_list:
- dnn: "sliceB"
cidr: "10.0.111.0/24"

Loading