Skip to content

Improve UX of WindowCovering by using motor_state #1706

Improve UX of WindowCovering by using motor_state

Improve UX of WindowCovering by using motor_state #1706

Workflow file for this run

name: Verify
on:
push:
branches:
- master
- main
- "releases?/**"
tags:
- v[0-9]+.[0-9]+.[0-9]+*
paths-ignore:
- "docs/**"
- "*.md"
pull_request:
paths-ignore:
- "docs/**"
- "*.md"
types: [opened, assigned, synchronize, reopened]
jobs:
build:
name: Verify
runs-on: ubuntu-latest
env:
node-version-analysis: 20.x
strategy:
matrix:
# the Node.js versions to build on
node-version: [18.x, 20.x]
steps:
- name: Checkout
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 ci
- name: Build
run: npm run build
env:
CI: true
- name: Test
run: npm run test
- name: Export PR info
if: github.event_name == 'pull_request' && matrix.node-version == env.node-version-analysis
run: |
mkdir -p ./pr
echo ${{ github.event.number }} > ./pr/number
echo ${{ github.head_ref }} > ./pr/head_ref
echo ${{ github.sha }} > ./pr/head_sha
echo ${{ github.base_ref }} > ./pr/base_ref
- name: Archive reports and info (for PR)
if: github.event_name == 'pull_request' && matrix.node-version == env.node-version-analysis
uses: actions/upload-artifact@v3
with:
name: reports
retention-days: 7
path: |
pr/
coverage/lcov.info
coverage/clover.xml
reports/tests.xml
- name: SonarCloud (on push)
uses: sonarsource/sonarcloud-github-action@master
if: github.event_name == 'push' && matrix.node-version == env.node-version-analysis
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Code Coverage (on push)
uses: codecov/codecov-action@v3
if: github.event_name == 'push' && matrix.node-version == env.node-version-analysis
with:
files: ./coverage/clover.xml
flags: tests
name: codecov-umbrella
fail_ci_if_error: true