Build and Lint #790
This file contains hidden or 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: 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 |