Skip to content

Commit

Permalink
Merge pull request #4840 from FlowFuse/ci-test-docs-with-website
Browse files Browse the repository at this point in the history
ci: Test docs along with website
  • Loading branch information
hardillb authored Nov 28, 2024
2 parents 4ab0fb2 + be3287b commit f299fd4
Showing 1 changed file with 51 additions and 1 deletion.
52 changes: 51 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,60 @@ jobs:
run: npm ci
- name: Test Documentation Links
run: npm run test:docs
test-with-website:
runs-on: ubuntu-latest
name: Test Documentation with website
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: 'flowfuse'
- name: Check out website repository
uses: actions/checkout@v4
with:
repository: 'FlowFuse/website'
path: 'website'
- name: Generate a token
id: generate_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.GH_BOT_APP_ID }}
private_key: ${{ secrets.GH_BOT_APP_KEY }}
- name: Check out FlowFuse/blueprint-library repository (to access the blueprints)
uses: actions/checkout@v4
with:
repository: 'FlowFuse/blueprint-library'
ref: main
path: 'blueprint-library'
token: ${{ steps.generate_token.outputs.token }}
- name: Cache image pipeline output
uses: actions/cache@v4
with:
key: img-pipeline-cache
path: website/_site/img
- uses: actions/setup-node@v4
with:
cache: 'npm'
cache-dependency-path: './website/package-lock.json'
- run: npm run docs
working-directory: 'website'
- run: npm run blueprints
working-directory: 'website'
- name: Install Dependencies
run: npm install
working-directory: 'website'
- name: Build the forge
run: npm run build:skip-images
working-directory: 'website'
- uses: untitaker/[email protected]
with:
args: website/_site/ --check-anchors --sources website/src
publish:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: test
needs:
- test
- test-with-website
name: Publish Documentation
steps:
- name: Generate token
Expand Down

0 comments on commit f299fd4

Please sign in to comment.