From 6359b07e9f27c1b82acd98ae6209365eefb21ee9 Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Tue, 20 Dec 2022 00:00:14 +0100 Subject: [PATCH] Updated validation actions --- .github/workflows/CodeQL.yaml | 63 +++++++++++++++++++ .../{validate.yaml => HACS_validation.yaml} | 2 +- .github/workflows/hassfest.yaml | 14 +++++ 3 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/CodeQL.yaml rename .github/workflows/{validate.yaml => HACS_validation.yaml} (92%) create mode 100644 .github/workflows/hassfest.yaml diff --git a/.github/workflows/CodeQL.yaml b/.github/workflows/CodeQL.yaml new file mode 100644 index 0000000..a2cdf19 --- /dev/null +++ b/.github/workflows/CodeQL.yaml @@ -0,0 +1,63 @@ +name: "CodeQL Action" + +on: + push: + branches: [main] + pull_request: + branches: [main] + schedule: + # ┌───────────── minute (0 - 59) + # │ ┌───────────── hour (0 - 23) + # │ │ ┌───────────── day of the month (1 - 31) + # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) + # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) + # │ │ │ │ │ + # │ │ │ │ │ + # │ │ │ │ │ + # * * * * * + - cron: '30 1 * * 0' + +jobs: + CodeQL-Build: + # CodeQL runs on ubuntu-latest, windows-latest, and macos-latest + runs-on: ubuntu-latest + + permissions: + # required for all workflows + security-events: write + + # only required for workflows in private repositories + actions: read + contents: read + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + # Override language selection by uncommenting this and choosing your languages + # with: + # languages: go, javascript, csharp, python, cpp, java, ruby + with: + languages: ${{ matrix.language }} + + # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java). + # If this step fails, then you should remove it and run the build manually (see below). + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + + # ℹ️ Command-line programs to run using the OS shell. + # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun + + # ✏️ If the Autobuild fails above, remove it and uncomment the following + # three lines and modify them (or add more) to build your code if your + # project uses a compiled language + + #- run: | + # make bootstrap + # make release + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/validate.yaml b/.github/workflows/HACS_validation.yaml similarity index 92% rename from .github/workflows/validate.yaml rename to .github/workflows/HACS_validation.yaml index fc1b5f9..5ff31ab 100644 --- a/.github/workflows/validate.yaml +++ b/.github/workflows/HACS_validation.yaml @@ -1,4 +1,4 @@ -name: Validate +name: HACS Validation on: push: diff --git a/.github/workflows/hassfest.yaml b/.github/workflows/hassfest.yaml new file mode 100644 index 0000000..18c7d19 --- /dev/null +++ b/.github/workflows/hassfest.yaml @@ -0,0 +1,14 @@ +name: Validate with hassfest + +on: + push: + pull_request: + schedule: + - cron: "0 0 * * *" + +jobs: + validate: + runs-on: "ubuntu-latest" + steps: + - uses: "actions/checkout@v2" + - uses: home-assistant/actions/hassfest@master -- 2.47.3