From c5b4b0680b09542b7422b4a3a90dbbc6de457c8e Mon Sep 17 00:00:00 2001 From: Dror Tirosh Date: Wed, 26 Jul 2023 15:02:23 +0300 Subject: [PATCH 1/4] update actions versions --- .github/workflows/deploy.yaml | 8 ++++---- .github/workflows/test.yaml | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 9d061a6..cdd1805 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -13,9 +13,9 @@ jobs: deploy-spec: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Use Node.js 15 - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: '15' - run: npm ci @@ -34,9 +34,9 @@ jobs: deploy-gh-pages: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Use Node.js 15 - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: '15' - run: npm ci diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 48fb598..cd582f8 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -6,16 +6,16 @@ jobs: lint-and-check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Use Node.js 15.x - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: ^15.x - run: npm ci - run: npm run build - run: npm run lint - name: Set up Go 1.x - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: go-version: ^1.18 id: go From 744fb32f4d630ecb47604cc7f43df063a6aeda13 Mon Sep 17 00:00:00 2001 From: Dror Tirosh Date: Wed, 26 Jul 2023 15:13:07 +0300 Subject: [PATCH 2/4] run spectest only when there are tests --- .github/workflows/test.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index cd582f8..dae2a8d 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -21,5 +21,5 @@ jobs: id: go - name: Install staticcheck run: go install github.com/lightclient/rpctestgen/cmd/speccheck@latest - - name: Install staticcheck - run: speccheck -v + - name: Run staticcheck + run: test -d tests && speccheck -v From 1eceb5cb720ec8f509e066ff276553ed27a73d4b Mon Sep 17 00:00:00 2001 From: Dror Tirosh Date: Sun, 21 Jan 2024 19:18:06 +0200 Subject: [PATCH 3/4] rerun test --- .github/workflows/test.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index dae2a8d..7413de9 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -23,3 +23,4 @@ jobs: run: go install github.com/lightclient/rpctestgen/cmd/speccheck@latest - name: Run staticcheck run: test -d tests && speccheck -v + From 072788839a97d1dae50f7e46a0a67d05e5449d76 Mon Sep 17 00:00:00 2001 From: Dror Tirosh Date: Sun, 21 Jan 2024 20:03:39 +0200 Subject: [PATCH 4/4] test ! -d tests --- .github/workflows/test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 7413de9..f425b3a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -22,5 +22,5 @@ jobs: - name: Install staticcheck run: go install github.com/lightclient/rpctestgen/cmd/speccheck@latest - name: Run staticcheck - run: test -d tests && speccheck -v + run: find * && test '!' -d tests || speccheck -v