From 60d5c3c8ccdb6e76678ffcc8b8988e8cc9bf27e6 Mon Sep 17 00:00:00 2001 From: idaho <664101+idaho@users.noreply.github.com> Date: Fri, 25 Aug 2023 12:14:27 +0200 Subject: [PATCH] chore: add a build to push on main and update badge (#21) --- .github/workflows/build.yml | 27 +++++++++++++++++++++++++++ README.md | 4 ++-- 2 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..e29bc9a --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,27 @@ +name: Build + +on: + push: + branches: + - main +jobs: + qa: + name: Build + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x, 20.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: Install dependencies + run: | + npm install + - name: Build + run: | + npm run build diff --git a/README.md b/README.md index 840433a..d2d49c7 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![hacs][hacs-badge]][hacs-url] [![release][release-badge]][release-url] ![downloads][downloads-badge] -![Quality assurance][build-badge] +![Build][build-badge] Buy Me A Coffee @@ -148,7 +148,7 @@ Thanks go to the team at [Mushroom][mushroom-url] for creating many beautiful ca [hacs-badge]: https://img.shields.io/badge/hacs-default-orange.svg?style=flat-square [release-badge]: https://img.shields.io/github/v/release/idaho/hassio-trash-card?style=flat-square [downloads-badge]: https://img.shields.io/github/downloads/idaho/hassio-trash-card/total?style=flat-square -[build-badge]: https://img.shields.io/github/actions/workflow/status/idaho/hassio-trash-card/qa.yml?label=Quality%20assurance&style=flat-square +[build-badge]: https://img.shields.io/github/actions/workflow/status/idaho/hassio-trash-card/build.yml?label=Build&style=flat-square [mushroom-url]: https://github.com/piitaya/lovelace-mushroom