chore: Run checks, tests and build as parallel jobs (#2614)
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
name: 'Build'
|
name: 'CI'
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -12,8 +12,8 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
check:
|
||||||
name: Test build
|
name: Check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -37,9 +37,35 @@ jobs:
|
|||||||
- name: Check formatting
|
- name: Check formatting
|
||||||
run: yarn run format-check
|
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
|
- name: Test & Coverage
|
||||||
run: yarn run 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
|
- name: Build
|
||||||
run: yarn run build
|
run: yarn run build
|
||||||
|
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
<!-- markdownlint-disable no-inline-html -->
|
<!-- markdownlint-disable no-inline-html -->
|
||||||
|
|
||||||
[](https://github.com/dermotduffy/advanced-camera-card/releases)
|
[](https://github.com/dermotduffy/advanced-camera-card/releases)
|
||||||
[](https://github.com/dermotduffy/advanced-camera-card/actions/workflows/build.yml)
|
[](https://github.com/dermotduffy/advanced-camera-card/actions/workflows/ci.yml)
|
||||||
[](LICENSE)
|
[](LICENSE)
|
||||||
[](https://hacs.xyz)
|
[](https://hacs.xyz)
|
||||||
[](https://github.com/sponsors/dermotduffy)
|
[](https://github.com/sponsors/dermotduffy)
|
||||||
|
|||||||
Reference in New Issue
Block a user