Skip to content

feat: support check mode for node to node, node to pod, pod to pod, p… #12

feat: support check mode for node to node, node to pod, pod to pod, p…

feat: support check mode for node to node, node to pod, pod to pod, p… #12

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
golangci:
name: lint
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: golint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54.1
verify:
name: verify
runs-on: ubuntu-22.04
env:
GOPATH: ${{ github.workspace }}
WORKSPACE: ${{ github.workspace }}/src/github.com/kosmos-io/netdoctor
defaults:
run:
working-directory: ${{ env.WORKSPACE }}
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
path: ${{ env.WORKSPACE }}
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
build:
name: build
needs: verify
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
# https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Compile
run: make netctl