-
Notifications
You must be signed in to change notification settings - Fork 7
58 lines (51 loc) · 1.39 KB
/
validate.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Validate
on:
push:
branches:
- main
pull_request:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: extractions/setup-just@v1
- run: just lint
test:
name: Unit Tests
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.19", "1.20"]
steps:
- uses: actions/checkout@v3
- 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@v3
- 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 }}