Skip to content

CI DEV workflow

CI DEV workflow #17

Workflow file for this run

# SPDX-License-Identifier: BSD-3-Clause
---
name: JSON RPC client CI DEV workflow
run-name: CI DEV workflow
on:
push:
branches:
- dev
env:
CLAB_VER: 0.40.0
jobs:
build_and_test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Setup_go_env
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- name: go_version
run: go version
- name: docker_version
run: docker -v
- name: Static_check
run: go vet ./...
- name: Unit_tests
if: ${{ success() }}
run: go test -v
- name: Pulling_docker_images
if: ${{ success() }}
run: |
docker pull ghcr.io/hellt/network-multitool
docker pull ghcr.io/nokia/srlinux:22.11.2
- name: clab_installation
if: ${{ success() }}
run: bash -c "$(curl -sL https://get.containerlab.dev)" -- -v $CLAB_VER
- name: clab_deploy
if: ${{ success() }}
run: |
cd _clab
sudo clab deploy
- name: Integration_tests
if: ${{ success() }}
run: |
go test --tags integration -v