Skip to content

Commit

Permalink
Setup build badges
Browse files Browse the repository at this point in the history
  • Loading branch information
duggan committed Feb 5, 2024
1 parent af63914 commit c5f9a08
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
fail-fast: false
matrix:
# the Node.js versions to build on
node-version: [18.x, 20.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/build_node20.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build and Lint

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
# the Node.js versions to build on
node-version: [20.x]

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

- name: Lint the project
run: npm run lint

- name: Build the project
run: npm run build

- name: List, audit, fix outdated dependencies and build again
run: |
npm list --outdated
npm audit || true # ignore failures
npm audit fix || true
npm list --outdated
npm run build
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Homebridge Technotherm

![Node v18.x](https://github.com/duggan/homebridge-technotherm/actions/workflows/build_node18.yml/badge.svg)
![Node v20.x](https://github.com/duggan/homebridge-technotherm/actions/workflows/build_node20.yml/badge.svg)

A plugin for instrumenting Technotherm Eletrical Partial Thermal-Storage Heaters in Homebridge.

**Status:** Experimental 🧪
Expand Down

0 comments on commit c5f9a08

Please sign in to comment.