Update mqtt-frontrunner-for-uns.md #6852
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: push | |
jobs: | |
test_website: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out website repository | |
uses: actions/checkout@v4 | |
with: | |
path: 'website' | |
- name: Check out FlowFuse/flowfuse repository (to access the docs) | |
uses: actions/checkout@v4 | |
with: | |
repository: 'FlowFuse/flowfuse' | |
ref: maintenance | |
path: 'flowfuse' | |
- 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 | |
- name: Test the website | |
run: npm run test | |
working-directory: 'website' | |