CI DEV workflow #31
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
# 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.41.2 | |
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:23.3.1 | |
- 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 | |