-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub actions for unit-tests and linter (#25)
This PR also updates golang to v1.17 Signed-off-by: Ivan Kolodiazhny <[email protected]>
- Loading branch information
Showing
3 changed files
with
98 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: "Build" | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
lint-code: | ||
name: golangci-lint | ||
runs-on: ubuntu-20.04 | ||
permissions: | ||
contents: read | ||
steps: | ||
- name: Set up Go 1.x | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.17.10' | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
- name: lint | ||
run: make lint | ||
unit-tests: | ||
name: Unit-tests | ||
runs-on: ubuntu-20.04 | ||
permissions: | ||
contents: read | ||
steps: | ||
- name: Set up Go 1.x | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.17.10' | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
- name: test | ||
run: make test-coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,32 @@ | ||
module github.com/Mellanox/ipoib-cni | ||
|
||
go 1.13 | ||
go 1.17 | ||
|
||
require ( | ||
github.com/containernetworking/cni v0.8.1 | ||
github.com/containernetworking/plugins v0.8.3 | ||
github.com/j-keck/arping v1.0.0 | ||
github.com/onsi/ginkgo v1.12.1 | ||
github.com/onsi/gomega v1.10.3 | ||
github.com/stretchr/testify v1.5.1 | ||
github.com/vishvananda/netlink v1.1.1-0.20201029203352-d40f9887b852 | ||
) | ||
|
||
require ( | ||
github.com/coreos/go-iptables v0.5.0 // indirect | ||
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect | ||
github.com/fsnotify/fsnotify v1.4.9 // indirect | ||
github.com/golang/protobuf v1.3.2 // indirect | ||
github.com/j-keck/arping v1.0.0 | ||
github.com/kr/pretty v0.2.0 // indirect | ||
github.com/onsi/ginkgo v1.12.0 | ||
github.com/onsi/gomega v1.9.0 | ||
github.com/nxadm/tail v1.4.4 // indirect | ||
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect | ||
github.com/safchain/ethtool v0.0.0-20190326074333-42ed695e3de8 // indirect | ||
github.com/stretchr/objx v0.2.1-0.20190415111823-35313a95ee26 // indirect | ||
github.com/stretchr/testify v1.5.1 | ||
github.com/vishvananda/netlink v1.1.0 | ||
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b // indirect | ||
golang.org/x/sys v0.0.0-20200408040146-ea54a3c99b9b // indirect | ||
github.com/vishvananda/netns v0.0.0-20200728191858-db3c7e526aae // indirect | ||
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4 // indirect | ||
golang.org/x/sys v0.0.0-20210510120138-977fb7262007 // indirect | ||
golang.org/x/text v0.3.3 // indirect | ||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 // indirect | ||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect | ||
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect | ||
gopkg.in/yaml.v2 v2.2.8 // indirect | ||
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect | ||
gopkg.in/yaml.v2 v2.3.0 // indirect | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters