Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/hujun-open/dhcplt
Browse files Browse the repository at this point in the history
  • Loading branch information
hujun-open committed Mar 17, 2022
2 parents ee3d992 + 20ccb1c commit 2ba23db
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 2 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# 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:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Runs a single command using the runners shell
- name: setup up GO
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: install dep
run: sudo apt-get -y install libpcap-dev kea-dhcp4-server kea-dhcp6-server
- name: download go dep
run: go get -t -v ./...


- name: Test
run: sudo -E env "PATH=$PATH" go test -failfast -p 1 -v
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# dhcplt
[![Build Status](https://travis-ci.org/hujun-open/dhcplt.svg?branch=master)](https://travis-ci.org/hujun-open/dhcplt)
![Build Status](https://github.com/hujun-open/dhcplt/actions/workflows/main.yml/badge.svg)

dhcplt is a DHCPv4/DHCPv6 load tester for Linux with following features:

Expand Down Expand Up @@ -168,4 +168,4 @@ Usage of ./dhcplt:
- -v6m: setting the DHCPv6 message type:
- solicit
- relay
- auto: if rid or cid is specified, then it is relay; otherwise solict
- auto: if rid or cid is specified, then it is relay; otherwise solict

0 comments on commit 2ba23db

Please sign in to comment.