From e4aa4ea4dbe764a3de4f63675b3d30ed2d3eb75d Mon Sep 17 00:00:00 2001 From: wenovus Date: Tue, 25 May 2021 18:05:04 -0700 Subject: [PATCH 1/5] Require test on openconfig/public to pass --- .github/workflows/{demo.yml => public.yml} | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) rename .github/workflows/{demo.yml => public.yml} (94%) diff --git a/.github/workflows/demo.yml b/.github/workflows/public.yml similarity index 94% rename from .github/workflows/demo.yml rename to .github/workflows/public.yml index bf869db..6b35e1a 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/public.yml @@ -1,4 +1,4 @@ -name: Demo on openconfig/public +name: openconfig/public on: pull_request: @@ -28,7 +28,6 @@ jobs: run: git clone https://github.com/openconfig/public.git ~/tmp/public - name: Demo output on openconfig/public - continue-on-error: true run: | OCDIR=~/tmp/public find "$OCDIR/regexp-tests" -name "*.yang" -print0 | xargs -0 pytests/pattern_test.sh @@ -58,6 +57,5 @@ jobs: run: git clone https://github.com/openconfig/public.git ~/tmp/public - name: Demo output on openconfig/public - continue-on-error: true run: | find "$OCDIR/regexp-tests" -name "*.yang" -print0 | xargs -0 go run gotests/main.go -model-root ~/tmp/public From be16d496eb793e430a9f22c8de4924e6875a7198 Mon Sep 17 00:00:00 2001 From: wenovus Date: Tue, 25 May 2021 18:08:45 -0700 Subject: [PATCH 2/5] Fix env var --- .github/workflows/public.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/public.yml b/.github/workflows/public.yml index 6b35e1a..cca4c03 100644 --- a/.github/workflows/public.yml +++ b/.github/workflows/public.yml @@ -29,7 +29,9 @@ jobs: - name: Demo output on openconfig/public run: | - OCDIR=~/tmp/public find "$OCDIR/regexp-tests" -name "*.yang" -print0 | xargs -0 pytests/pattern_test.sh + find "$OCDIR/regexp-tests" -name "*.yang" -print0 | xargs -0 pytests/pattern_test.sh + env: + OCDIR=~/tmp/public posix-pattern: name: posix-pattern statement @@ -59,3 +61,5 @@ jobs: - name: Demo output on openconfig/public run: | find "$OCDIR/regexp-tests" -name "*.yang" -print0 | xargs -0 go run gotests/main.go -model-root ~/tmp/public + env: + OCDIR=~/tmp/public From ae725e43c7d835e6636c57a93248770fa760e843 Mon Sep 17 00:00:00 2001 From: wenovus Date: Tue, 25 May 2021 18:12:12 -0700 Subject: [PATCH 3/5] Fix typo --- .github/workflows/public.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/public.yml b/.github/workflows/public.yml index cca4c03..130ae3a 100644 --- a/.github/workflows/public.yml +++ b/.github/workflows/public.yml @@ -31,7 +31,7 @@ jobs: run: | find "$OCDIR/regexp-tests" -name "*.yang" -print0 | xargs -0 pytests/pattern_test.sh env: - OCDIR=~/tmp/public + OCDIR: ~/tmp/public posix-pattern: name: posix-pattern statement @@ -62,4 +62,4 @@ jobs: run: | find "$OCDIR/regexp-tests" -name "*.yang" -print0 | xargs -0 go run gotests/main.go -model-root ~/tmp/public env: - OCDIR=~/tmp/public + OCDIR: ~/tmp/public From 3572fed8c03fb8a2bdfeb290f6badce024d74583 Mon Sep 17 00:00:00 2001 From: wenovus Date: Tue, 25 May 2021 18:14:11 -0700 Subject: [PATCH 4/5] Try fix workflow --- .github/workflows/public.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/public.yml b/.github/workflows/public.yml index 130ae3a..6aca8c4 100644 --- a/.github/workflows/public.yml +++ b/.github/workflows/public.yml @@ -25,13 +25,13 @@ jobs: run: pip3 install pyang - name: Get public repo - run: git clone https://github.com/openconfig/public.git ~/tmp/public + run: git clone https://github.com/openconfig/public.git /tmp/public - name: Demo output on openconfig/public run: | find "$OCDIR/regexp-tests" -name "*.yang" -print0 | xargs -0 pytests/pattern_test.sh env: - OCDIR: ~/tmp/public + OCDIR: /tmp/public posix-pattern: name: posix-pattern statement @@ -56,10 +56,10 @@ jobs: run: go build -v ./... - name: Get public repo - run: git clone https://github.com/openconfig/public.git ~/tmp/public + run: git clone https://github.com/openconfig/public.git /tmp/public - name: Demo output on openconfig/public run: | find "$OCDIR/regexp-tests" -name "*.yang" -print0 | xargs -0 go run gotests/main.go -model-root ~/tmp/public env: - OCDIR: ~/tmp/public + OCDIR: /tmp/public From 9fad2bbcac045e84890623d88d5fed75a4737308 Mon Sep 17 00:00:00 2001 From: wenovus Date: Tue, 25 May 2021 18:16:53 -0700 Subject: [PATCH 5/5] Fix workflow --- .github/workflows/public.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/public.yml b/.github/workflows/public.yml index 6aca8c4..d261767 100644 --- a/.github/workflows/public.yml +++ b/.github/workflows/public.yml @@ -60,6 +60,6 @@ jobs: - name: Demo output on openconfig/public run: | - find "$OCDIR/regexp-tests" -name "*.yang" -print0 | xargs -0 go run gotests/main.go -model-root ~/tmp/public + find "$OCDIR/regexp-tests" -name "*.yang" -print0 | xargs -0 go run gotests/main.go -model-root "$OCDIR" env: OCDIR: /tmp/public