fix(ui): return routes set not working without a priority route #10026
Workflow file for this run
This file contains 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: 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: [16.x, 18.x, 19.x] | |
steps: | |
- name: Checkout Z-Wave JS UI | |
uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3.4.1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Lint | |
if: matrix['node-version'] == '18.x' | |
run: yarn 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 | |
yarn 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: yarn run test | |
- name: Generate coverage report | |
if: matrix['node-version'] == '18.x' | |
run: | | |
yarn run coverage | |
yarn run record-coverage | |
- name: Coveralls | |
uses: coverallsapp/github-action@master | |
if: matrix['node-version'] == '18.x' | |
with: | |
github-token: ${{ secrets.github_token }} |