From 37b07f079d0331f384a30ecf5b36b123d254e734 Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Sat, 25 Jul 2026 22:01:53 -0700 Subject: [PATCH] chore: Run checks, tests and build as parallel jobs (#2614) --- .github/workflows/{build.yml => ci.yml} | 32 ++++++++++++++++++++++--- README.md | 2 +- 2 files changed, 30 insertions(+), 4 deletions(-) rename .github/workflows/{build.yml => ci.yml} (72%) diff --git a/.github/workflows/build.yml b/.github/workflows/ci.yml similarity index 72% rename from .github/workflows/build.yml rename to .github/workflows/ci.yml index 104cd6f5..997a1cc6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,5 @@ --- -name: 'Build' +name: 'CI' on: push: @@ -12,8 +12,8 @@ on: workflow_dispatch: jobs: - build: - name: Test build + check: + name: Check runs-on: ubuntu-latest steps: - name: Checkout @@ -37,9 +37,35 @@ jobs: - name: Check formatting run: yarn run format-check + test: + name: Test + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v7 + + - name: Setup Node and Yarn + uses: volta-cli/action@v5 + + - name: Install dependencies + run: yarn install --immutable + - name: Test & Coverage run: yarn run coverage + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v7 + + - name: Setup Node and Yarn + uses: volta-cli/action@v5 + + - name: Install dependencies + run: yarn install --immutable + - name: Build run: yarn run build diff --git a/README.md b/README.md index de4f7be2..2e747195 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![GitHub Release](https://img.shields.io/github/release/dermotduffy/advanced-camera-card.svg?style=flat-square)](https://github.com/dermotduffy/advanced-camera-card/releases) -[![Build Status](https://img.shields.io/github/actions/workflow/status/dermotduffy/advanced-camera-card/build.yml?style=flat-square)](https://github.com/dermotduffy/advanced-camera-card/actions/workflows/build.yml) +[![CI Status](https://img.shields.io/github/actions/workflow/status/dermotduffy/advanced-camera-card/ci.yml?style=flat-square)](https://github.com/dermotduffy/advanced-camera-card/actions/workflows/ci.yml) [![License](https://img.shields.io/github/license/dermotduffy/advanced-camera-card.svg?style=flat-square)](LICENSE) [![HACS](https://img.shields.io/badge/HACS-default-orange.svg?style=flat-square)](https://hacs.xyz) [![Sponsor](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86&style=flat-square)](https://github.com/sponsors/dermotduffy)