From c6bbdbb77be7814eb08bfea76f32d6c0fd77e359 Mon Sep 17 00:00:00 2001 From: Alex Savin Date: Fri, 7 Feb 2025 14:17:46 -0500 Subject: [PATCH] Added a new github workflow --- .github/workflow/build.yaml | 65 +++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 .github/workflow/build.yaml diff --git a/.github/workflow/build.yaml b/.github/workflow/build.yaml new file mode 100644 index 0000000..450d817 --- /dev/null +++ b/.github/workflow/build.yaml @@ -0,0 +1,65 @@ +--- +name: "Savin's Home Assistant" +on: [push] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install Custom Components (Hass.IO) + run: | + pwd + ls -la + +# git checkout $(git describe --tags --always $(git rev-list --tags --max-count=1000) | grep -e "[0-9]\+\.[0-9]\+\.[0-9]\+$" | head -n 1) + +# - name: Install system libs and dependencies +# run: | +# sudo apt-get -qq update +# sudo apt-get -y -qq install libudev-dev ffmpeg +# sudo apt-get -y -qq install libavformat-dev libavcodec-dev libavdevice-dev libavutil-dev libswscale-dev libswresample-dev +# sudo apt-get install nodejs + +# - name: Install Prettier +# run: | +# sudo npm install --global prettier + +# - name: Set up Python 3.13 +# uses: actions/setup-python@v5 +# with: +# python-version: 3.13 + +# - name: Install Python packages (Lint) +# run: | +# python -m pip install --upgrade pip +# pip install black flake8 pylint yamllint + +# - name: YAML Lint +# run: | +# yamllint ./ + +# # - name: Prettier Check Up +# # run: | +# # prettier --check --no-bracket-spacing '**/*.{yaml,json}' + +# - name: Install Python packages (Hass.IO) +# run: | +# pip install yq jq +# pip install homeassistant + +# - name: Check HassIO configuration +# run: | +# sudo mkdir -p /config/snapshots +# hass --version +# mv secrets.yaml.sample secrets.yaml +# hass -c . --script check_config | tee check.output +# ! less check.output | grep -q "Failed config" + +# # - name: Send a telegram message with job status +# # if: always() +# # uses: appleboy/telegram-action@master +# # with: +# # to: ${{ secrets.TELEGRAM_TO }} +# # token: ${{ secrets.TELEGRAM_TOKEN }} +# # args: The last job from repo ({{repo}}) finished with ${{job.status}}. -- 2.49.0