Skip to content

Build and Lint

Build and Lint #790

Workflow file for this run

name: Build and Lint
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
workflow_dispatch:
schedule:
- cron: '15 7 * * *'
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [22.x, 24.x, 26.x]
matterbridge-tag: ['latest', 'dev']
steps:
- name: Checkout project
uses: actions/checkout@v6
- name: Prepare build environment
uses: ./.github/actions/prepare-environment
with:
node-version: ${{ matrix.node-version }}
matterbridge-tag: ${{ matrix.matterbridge-tag }}
- name: Build the project
run: npm run build
- name: Lint the project
run: npm run lint
- name: Test the project (mock devices)
run: npm run test -- ./mqtt-logs