Skip to content

Commit fda74fd

Browse files
authored
Merge pull request #17 from openconfig/use-common-workflow
Use common workflow
2 parents 2633260 + a134c58 commit fda74fd

4 files changed

Lines changed: 15 additions & 41 deletions

File tree

.github/workflows/go.yml

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,7 @@ on:
44
push:
55
branches: [ main ]
66
pull_request:
7-
branches: [ main ]
87

98
jobs:
10-
11-
build:
12-
name: Build
13-
runs-on: ubuntu-latest
14-
strategy:
15-
fail-fast: false
16-
17-
steps:
18-
- name: Set up Go 1.x
19-
uses: actions/setup-go@v2
20-
# Use default go version so that we don't have to update it every time a new one comes out.
21-
id: go
22-
23-
- name: Check out code into the Go module directory
24-
uses: actions/checkout@v2
25-
26-
- name: Get dependencies
27-
run: |
28-
go get -v -t -d ./...
29-
30-
- name: Build
31-
run: go build -v ./...
32-
33-
- name: Test
34-
run: go test -v ./...
9+
go:
10+
uses: openconfig/common-ci/.github/workflows/basic_go.yml@c2294c3c86c90e75e58c24a40d6f7f3364bbae9d

go.mod

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
11
module github.com/openconfig/pattern-regex-tests
22

3-
go 1.15
3+
go 1.19
44

55
require (
66
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
77
github.com/google/go-cmp v0.5.0
8-
github.com/openconfig/gnmi v0.0.0-20201217212801-57b8e7af2d36 // indirect
98
github.com/openconfig/goyang v0.2.4
109
github.com/openconfig/ygot v0.9.0
1110
)
11+
12+
require (
13+
github.com/golang/protobuf v1.4.3 // indirect
14+
github.com/kylelemons/godebug v1.1.0 // indirect
15+
github.com/openconfig/gnmi v0.0.0-20201217212801-57b8e7af2d36 // indirect
16+
golang.org/x/net v0.0.0-20201209123823-ac852fbbde11 // indirect
17+
golang.org/x/sys v0.0.0-20201214210602-f9fddec55a1e // indirect
18+
golang.org/x/text v0.3.4 // indirect
19+
google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d // indirect
20+
google.golang.org/grpc v1.34.0 // indirect
21+
google.golang.org/protobuf v1.25.0 // indirect
22+
)

go.sum

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ github.com/openconfig/goyang v0.2.4/go.mod h1:vX61x01Q46AzbZUzG617vWqh/cB+aisc+R
4949
github.com/openconfig/ygot v0.6.0/go.mod h1:o30svNf7O0xK+R35tlx95odkDmZWS9JyWWQSmIhqwAs=
5050
github.com/openconfig/ygot v0.9.0 h1:as0Hi27+tii4dnT1Namxrba+UVgMTn4eElQ08a6DtF4=
5151
github.com/openconfig/ygot v0.9.0/go.mod h1:oCQNdXnv7dWc8scTDgoFkauv1wwplJn5HspHcjlxSAQ=
52-
github.com/pborman/getopt v0.0.0-20190409184431-ee0cd42419d3 h1:YtFkrqsMEj7YqpIhRteVxJxCeC3jJBieuLr0d4C4rSA=
5352
github.com/pborman/getopt v0.0.0-20190409184431-ee0cd42419d3/go.mod h1:85jBQOZwpVEaDAr341tbn15RS4fCAsIst0qp7i8ex1o=
5453
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
5554
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=

gotests/patterncheck/patterncheck.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,6 @@ var (
3030
failCaseExt = regexp.MustCompile(`\w+:pattern-test-fail`)
3131
)
3232

33-
// YANGLeaf is a structure used to describe a particular leaf of YANG schema.
34-
type YANGLeaf struct {
35-
module string
36-
name string
37-
}
38-
39-
// RegexpTest specifies a test case for a particular regular expression check.
40-
type RegexpTest struct {
41-
inData string
42-
wantMatch bool
43-
}
44-
4533
// CheckRegexps tests mock input data against a set of leaves that have pattern
4634
// test cases specified for them. It ensures that the regexp compiles as a
4735
// POSIX regular expression according to the OpenConfig style guide.

0 commit comments

Comments
 (0)