Skip to content

Release 9.14.2

Release 9.14.2 #10846

Workflow file for this run

name: ci
on:
push:
branches:
- master
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- name: Checkout Z-Wave JS UI
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Lint
if: matrix['node-version'] == '18.x'
run: npm run lint
- name: Prepare lint auto-fix patch
if: |
matrix['node-version'] == '18.x' &&
failure() &&
github.event_name == 'pull_request'
id: lint
run: |
# Run all lint commands and abort if one has unfixable errors
npm run lint-fix
git diff --name-only || true
if ! git diff --quiet ; then
echo "has changes"
git diff > fix.patch
echo "changed=true" >> $GITHUB_OUTPUT
else
echo "unchanged"
echo "changed=false" >> $GITHUB_OUTPUT
fi
- name: Upload Patch
if: |
matrix['node-version'] == '18.x' &&
failure() &&
github.event_name == 'pull_request' &&
steps.lint.outputs.changed == 'true'
uses: actions/upload-artifact@v3
with:
name: lint-fix
path: fix.patch
- name: Test
run: npm run test
- name: Generate coverage report
if: matrix['node-version'] == '18.x'
run: |
npm run coverage
npm run record-coverage
- name: Coveralls
uses: coverallsapp/github-action@master
if: matrix['node-version'] == '18.x'
with:
github-token: ${{ secrets.github_token }}