Skip to content

Feature/initial code #1

Feature/initial code

Feature/initial code #1

Workflow file for this run

name: Main
on:
workflow_dispatch:
schedule:
- cron: '0 1 * * *'
push:
branches:
- develop
- main
- beta
paths-ignore:
- 'mkdocs.yml'
- '_docs/**'
pull_request:
branches-ignore:
- main
paths-ignore:
- 'mkdocs.yml'
- '_docs/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
HUSKY: 0
jobs:
validate:
if: ${{ github.event_name != 'schedule' || github.repository_owner == 'BottlecapDave' }}
name: Validate
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- uses: "home-assistant/actions/hassfest@master"
- name: HACS Action
uses: "hacs/action@main"
with:
category: "integration"
unit_tests:
if: ${{ github.event_name != 'schedule' || github.repository_owner == 'BottlecapDave' }}
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup
uses: ./.github/actions/setup
- name: Run unit tests
run: |
python -m pytest tests/unit
release:
name: Release
if: ${{ github.repository_owner == 'BottlecapDave' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta') }}
needs:
- validate
- unit_tests
- integration_tests

Check failure on line 60 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / Main

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 60, Col: 7): Job 'release' depends on unknown job 'integration_tests'.
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: asdf_install
uses: asdf-vm/actions/install@v3
- name: Install dependencies
run: npm ci
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run release
- name: Merge main into develop
if: ${{ github.repository_owner == 'BottlecapDave' && github.ref == 'refs/heads/main' }}
uses: devmasx/merge-branch@master
with:
type: now
message: "chore: Merged main into develop"
from_branch: main
target_branch: develop
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Merge main into beta
if: ${{ github.repository_owner == 'BottlecapDave' && github.ref == 'refs/heads/beta' }}
uses: devmasx/merge-branch@master
with:
type: now
message: "chore: Merged main into beta"
from_branch: main
target_branch: beta
github_token: ${{ secrets.GITHUB_TOKEN }}