Skip to content

bump for Go version 1.21 and 1.22 #194

bump for Go version 1.21 and 1.22

bump for Go version 1.21 and 1.22 #194

Workflow file for this run

name: Validate
on:
push:
branches:
- main
pull_request:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: extractions/setup-just@v1
- run: just lint
test:
name: Unit Tests
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.21", "1.22"]
steps:
- uses: actions/checkout@v4
- uses: extractions/setup-just@v1
- run: GO_VERSION=${{ matrix.go }} just test
inttest:
name: Integration Tests
runs-on: ubuntu-latest
strategy:
# matrix here allows us to parallelize these tests
matrix:
target:
# Disabling temporarily due to some initialization issues
#- ceos
- csrx
- confd
- netopeer2
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: extractions/setup-just@v1
- name: Run containered integration tests
env:
# Private images for testing
CSRX_IMAGE: ghcr.io/nemith/netconf_dut_juniper_csrx:20.3R1.8
CEOS_IMAGE: ghcr.io/nemith/netconf_dut_arista_ceos64-lab:4.28.3M
CONFD_IMAGE: ghcr.io/nemith/netconf_dut_tailf_confd:7.8.3
run: just inttest/${{ matrix.target }}