Skip to content

Check array is non-empty before referencing 0th element #6763

Check array is non-empty before referencing 0th element

Check array is non-empty before referencing 0th element #6763

Workflow file for this run

name: Zui CI
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-12, ubuntu-20.04, windows-2019]
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-zui
- run: yarn lint
- run: yarn test
- name: Build and install package
if: runner.os != 'Windows'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -x
case ${{ runner.os }} in
Linux )
yarn nx package zui --linux=deb --publish never
sudo apt install -y --no-install-recommends ./dist/apps/zui/*.deb
;;
esac