File tree Expand file tree Collapse file tree 3 files changed +25
-3
lines changed
Expand file tree Collapse file tree 3 files changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,17 @@ jobs:
3535 - name : Disable default go problem matcher
3636 run : echo "::remove-matcher owner=go::"
3737
38- - name : Check out code
38+ - name : Check out l2discovery-lib code
3939 uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
4040 with :
4141 ref : ${{ github.sha }}
42+
43+ - name : Check out l2discovery-examples code
44+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
45+ with :
46+ repository : redhat-cne/graphsolver-examples
47+ ref : main
48+ path : examples
4249
4350 - name : Extract dependent Pull Requests
4451 uses : depends-on/depends-on-action@9e8a61fce18b15281e831f1bba0e14c71d1e1f46 # main
7279 run : make build
7380 env :
7481 SHELL : /bin/bash
75-
76- - name : Run Tests
82+
83+ - name : Run examples cluster tests with this latest l2discovery-lib code
7784 run : make test
7885 env :
7986 SHELL : /bin/bash
Original file line number Diff line number Diff line change @@ -9,3 +9,5 @@ install-lint:
99 curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ${GO_PATH} /bin ${GOLANGCI_VERSION}
1010vet :
1111 go vet ${GO_PACKAGES}
12+ test :
13+ ./scripts/test.sh
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -o nounset -o pipefail
3+
4+ # CD in the examples repo
5+ cd examples || exit
6+
7+ # Get latest changes
8+ echo " replace github.com/redhat-cne/l2discovery-lib => .." >> go.mod
9+ go mod tidy
10+ go mod vendor
11+
12+ # Test them in examples repository
13+ make test
You can’t perform that action at this time.
0 commit comments