chore: Run checks, tests and build as parallel jobs (#2614)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<!-- markdownlint-disable no-inline-html -->
|
||||
|
||||
[](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)
|
||||
[](https://hacs.xyz)
|
||||
[](https://github.com/sponsors/dermotduffy)
|
||||
|
||||
Reference in New Issue
Block a user