Skip to content

Commit

Permalink
replace travis with github action
Browse files Browse the repository at this point in the history
  • Loading branch information
vishvananda committed Jan 12, 2022
1 parent 9ada191 commit e5fd1f8
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 21 deletions.
8 changes: 8 additions & 0 deletions .github/scripts/modprobe.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
sudo modprobe ip_gre
sudo modprobe nf_conntrack
sudo modprobe nf_conntrack_netlink
sudo modprobe nf_conntrack_ipv4
sudo modprobe nf_conntrack_ipv6
sudo modprobe sch_hfsc
sudo modprobe sch_sfq
29 changes: 29 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Main

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:

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

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16

- name: Kernel Modules
run: ./.github/scripts/modprobe.sh
shell: bash

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# netlink - netlink library for go #

[![Build Status](https://app.travis-ci.com/vishvananda/netlink.svg?branch=master)](https://app.travis-ci.com/github/vishvananda/netlink) [![GoDoc](https://godoc.org/github.com/vishvananda/netlink?status.svg)](https://godoc.org/github.com/vishvananda/netlink)
![Build Status](https://github.com/github/docs/actions/workflows/main.yml/badge.svg) [![GoDoc](https://godoc.org/github.com/vishvananda/netlink?status.svg)](https://godoc.org/github.com/vishvananda/netlink)

The netlink package provides a simple netlink library for go. Netlink
is the interface a user-space program in linux uses to communicate with
Expand Down

0 comments on commit e5fd1f8

Please sign in to comment.