From 81c9dadc39f68432d022d81b770b1a351a787fa0 Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Tue, 29 Dec 2020 13:34:00 +0100 Subject: [PATCH] Splitted github actions --- .github/workflows/combined.yaml | 30 ------------------------------ .github/workflows/formatting.yaml | 26 ++++++++++++++++++++++++++ .github/workflows/validate.yaml | 17 +++++++++++++++++ 3 files changed, 43 insertions(+), 30 deletions(-) delete mode 100644 .github/workflows/combined.yaml create mode 100644 .github/workflows/formatting.yaml create mode 100644 .github/workflows/validate.yaml diff --git a/.github/workflows/combined.yaml b/.github/workflows/combined.yaml deleted file mode 100644 index 2b4916a..0000000 --- a/.github/workflows/combined.yaml +++ /dev/null @@ -1,30 +0,0 @@ -name: "Validation And Formatting" -on: - push: - pull_request: - schedule: - - cron: '0 0 * * *' -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - name: Download repo - with: - fetch-depth: 0 - - uses: actions/setup-python@v2 - name: Setup Python - - uses: actions/cache@v2 - name: Cache - with: - path: | - ~/.cache/pip - key: custom-component-ci - - uses: hacs/action@main - with: - CATEGORY: integration - ignore: brands - - uses: KTibow/ha-blueprint@stable - name: CI - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/formatting.yaml b/.github/workflows/formatting.yaml new file mode 100644 index 0000000..c4ec00a --- /dev/null +++ b/.github/workflows/formatting.yaml @@ -0,0 +1,26 @@ +name: Formatting + +on: + push: + pull_request: + +jobs: + ci: + runs-on: "ubuntu-latest" + steps: + - uses: "actions/checkout@v2" + name: Download repo + with: + fetch-depth: 0 + - uses: "actions/setup-python@v2" + name: Setup Python + - uses: "actions/cache@v2" + name: Cache + with: + path: | + ~/.cache/pip + key: custom-component-ci + - uses: "KTibow/ha-blueprint@stable" + name: CI + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/validate.yaml b/.github/workflows/validate.yaml new file mode 100644 index 0000000..fc1b5f9 --- /dev/null +++ b/.github/workflows/validate.yaml @@ -0,0 +1,17 @@ +name: Validate + +on: + push: + pull_request: + schedule: + - cron: "0 0 * * *" + +jobs: + validate: + runs-on: "ubuntu-latest" + steps: + - uses: "actions/checkout@v2" + - name: HACS validation + uses: "hacs/action@main" + with: + category: "integration" -- 2.47.3