From 65bc0f1a91df2263c70bec21ae90c0ceed1ea246 Mon Sep 17 00:00:00 2001 From: Josef Ketels Date: Mon, 30 Dec 2024 23:54:38 +0100 Subject: [PATCH] add workflows --- .github/workflows/validate.yaml | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/validate.yaml diff --git a/.github/workflows/validate.yaml b/.github/workflows/validate.yaml new file mode 100644 index 0000000..802aa6c --- /dev/null +++ b/.github/workflows/validate.yaml @@ -0,0 +1,34 @@ +name: Validate + +on: + push: + pull_request: + schedule: + - cron: "0 0 * * *" + +jobs: + validate-hacs: + runs-on: "ubuntu-latest" + steps: + - uses: "actions/checkout@v4" + - uses: "home-assistant/actions/hassfest@master" + hacs: + name: HACS Action + runs-on: "ubuntu-latest" + steps: + - name: HACS Action + uses: "hacs/action@main" + with: + category: "custom-card" + validate-style: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 16 + - name: Install dependencies + run: npm install + - name: Build + run: npm run build \ No newline at end of file