admin: testing docs

This commit is contained in:
Richard Moore 2022-12-02 22:45:03 -05:00
parent 57ce387024
commit 565de0d761

@ -8,6 +8,7 @@ on:
jobs: jobs:
test-node: test-node:
if: ${{ false }} # disable for now
name: Run Node.js Tests name: Run Node.js Tests
@ -45,6 +46,7 @@ jobs:
coverage: coverage:
if: ${{ false }} # disable for now
name: Generate Coverage Report name: Generate Coverage Report
@ -99,3 +101,43 @@ jobs:
source_folder: 'output/' source_folder: 'output/'
destination_prefix: 'build/output/' destination_prefix: 'build/output/'
aws_cloudfront_id: ${{ secrets.BUILD_AWS_CLOUDFRONT_ID }} aws_cloudfront_id: ${{ secrets.BUILD_AWS_CLOUDFRONT_ID }}
docs:
name: Generate Documentation
runs-on: ubuntu-latest
environment: ethers-tests
env:
FAUCET_PRIVATEKEY: ${{ secrets.FAUCET_PRIVATEKEY }}
continue-on-error: true
steps:
- uses: actions/setup-node@v1
with:
node-version: 18.x
- name: Checkout repository
uses: actions/checkout@v2
with:
ref: "v6-beta-exports"
- name: Install dependencies
run: npm ci
- name: Install Flatworm
run: npm install --no-save 'https://github.com/ricmoo/flatworm.git#tsdocs'
- name: Build Documentation
run: node node_modules/flatworm/lib/test-api-index ./docs.wrm/config.js
- name: Tar documentation files
run: tar -cvf ./output/docs.tar ./output/docs/
- name: Store full coverage artifact
uses: actions/upload-artifact@v2
with:
name: docs
path: ./output/docs.tar