Skip to content

Commit

Permalink
chore: add a build to push on main and update badge (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
idaho authored Aug 25, 2023
1 parent 36290a7 commit 60d5c3c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![hacs][hacs-badge]][hacs-url]
[![release][release-badge]][release-url]
![downloads][downloads-badge]
![Quality assurance][build-badge]
![Build][build-badge]

<a href="https://www.buymeacoffee.com/idaho" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/white_img.png" alt="Buy Me A Coffee" style="height: auto !important;width: auto !important;" ></a>

Expand Down Expand Up @@ -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
<!-- References -->
[mushroom-url]: https://github.com/piitaya/lovelace-mushroom
Expand Down

0 comments on commit 60d5c3c

Please sign in to comment.