diff --git a/.github/workflows/build.yml b/.github/workflows/build_node18.yml similarity index 89% rename from .github/workflows/build.yml rename to .github/workflows/build_node18.yml index f20ccb5..0ae206e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build_node18.yml @@ -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 }} diff --git a/.github/workflows/build_node20.yml b/.github/workflows/build_node20.yml new file mode 100644 index 0000000..1f8ec6f --- /dev/null +++ b/.github/workflows/build_node20.yml @@ -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 diff --git a/README.md b/README.md index a377ee7..1214ada 100644 --- a/README.md +++ b/README.md @@ -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 🧪