From 1b67499da19e1c3fb2ae921389f6135a8d655320 Mon Sep 17 00:00:00 2001 From: Peter Rounce Date: Tue, 7 Feb 2023 15:29:35 +0000 Subject: [PATCH 1/7] add apidocs --- .github/workflows/go.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 18cfd45..33ed1d9 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -10,8 +10,6 @@ on: branches: [ "main" ] jobs: - - build: runs-on: ubuntu-latest steps: @@ -33,3 +31,18 @@ jobs: - name: Test run: go test -v ./... + + apidoc: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Create docs + uses: actions/apidoc@v1 + with: + input: / + output: docs + + - name: List docs + run: ls -l docs + From 2ba5de66363158ba4b63c2db1b83fac2f7c76d50 Mon Sep 17 00:00:00 2001 From: Peter Rounce Date: Tue, 7 Feb 2023 15:41:29 +0000 Subject: [PATCH 2/7] Update go.yml --- .github/workflows/go.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 33ed1d9..e742150 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -38,11 +38,9 @@ jobs: - uses: actions/checkout@v3 - name: Create docs - uses: actions/apidoc@v1 - with: - input: / - output: docs + run: | + npm install apidoc -g + apidoc -i / -o apidoc - name: List docs - run: ls -l docs - + run: ls -l apidoc From 7c3bb1638bfcd8a619e89babfa9500929ed08ca7 Mon Sep 17 00:00:00 2001 From: Peter Rounce Date: Tue, 7 Feb 2023 15:47:01 +0000 Subject: [PATCH 3/7] Update go.yml --- .github/workflows/go.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index e742150..865668b 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -36,7 +36,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - + - uses: actions/setup-node@v3 + with: + node-version: 16 + - name: Create docs run: | npm install apidoc -g From b7dcae483796c6d5270e02fda5c134c42a129a13 Mon Sep 17 00:00:00 2001 From: Peter Rounce Date: Tue, 7 Feb 2023 15:53:44 +0000 Subject: [PATCH 4/7] Update go.yml --- .github/workflows/go.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 865668b..3cb0efb 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -42,8 +42,8 @@ jobs: - name: Create docs run: | - npm install apidoc -g - apidoc -i / -o apidoc + npm install -g apidoc + apidoc -i / -o apidocs - name: List docs - run: ls -l apidoc + run: ls -l apidocs From 9e99ac28d8d8a5b0d45b6b3595c96e807a782532 Mon Sep 17 00:00:00 2001 From: Peter Rounce Date: Tue, 7 Feb 2023 15:58:12 +0000 Subject: [PATCH 5/7] Update go.yml --- .github/workflows/go.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 3cb0efb..1dab16b 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -42,8 +42,8 @@ jobs: - name: Create docs run: | - npm install -g apidoc - apidoc -i / -o apidocs + npm install apidoc + apidoc -i . -o apidocs - name: List docs run: ls -l apidocs From de6a0706d0908ddfe4885ac9a167c28ec03855a3 Mon Sep 17 00:00:00 2001 From: Peter Rounce Date: Tue, 7 Feb 2023 16:03:25 +0000 Subject: [PATCH 6/7] Update go.yml --- .github/workflows/go.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 1dab16b..aebbfc6 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -43,6 +43,7 @@ jobs: - name: Create docs run: | npm install apidoc + which apidoc apidoc -i . -o apidocs - name: List docs From f1b955db9424eb6d8a298a56f6c99f2a15495aa5 Mon Sep 17 00:00:00 2001 From: Peter Rounce Date: Tue, 7 Feb 2023 16:07:00 +0000 Subject: [PATCH 7/7] remove apidoc from actions --- .github/workflows/go.yml | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index aebbfc6..f0792d2 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -31,20 +31,3 @@ jobs: - name: Test run: go test -v ./... - - apidoc: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 16 - - - name: Create docs - run: | - npm install apidoc - which apidoc - apidoc -i . -o apidocs - - - name: List docs - run: ls -l apidocs