Skip to content

Commit 69f7145

Browse files
authored
chore: 🤖 decouple ci runners for unit tests, chromatic and code quality (#822)
* chore: 🤖 remove deployment (chromatic) script * chore: 🤖 create chromatic github action * chore: 🤖 create unit tests github action * chore: 🤖 create code quality verification github action
1 parent 4fe54c8 commit 69f7145

4 files changed

Lines changed: 86 additions & 55 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: 🎨 Chromatic deployment
2+
3+
on:
4+
pull_request:
5+
6+
env:
7+
HUSKY: 0
8+
9+
jobs:
10+
chromatic-deployment:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v6
14+
with:
15+
fetch-depth: 0
16+
17+
- uses: actions/setup-node@v6
18+
with:
19+
node-version: 'latest'
20+
21+
- name: Enable Corepack
22+
run: corepack enable
23+
24+
- name: Install dependencies
25+
run: yarn install --immutable
26+
27+
- name: Publish to Chromatic
28+
uses: chromaui/action@latest
29+
with:
30+
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: 🚑 Code quality checks
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
env:
8+
HUSKY: 0
9+
10+
jobs:
11+
code-quality-checks:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v6
15+
- uses: actions/setup-node@v6
16+
with:
17+
node-version: 'latest'
18+
19+
- name: Enable Corepack
20+
run: corepack enable
21+
22+
- name: Install dependencies
23+
run: yarn install --immutable
24+
25+
- name: Linter
26+
run: yarn lint
27+
28+
- name: Formatter
29+
run: yarn format

‎.github/workflows/deployment.yml‎

Lines changed: 0 additions & 55 deletions
This file was deleted.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: 🧪 Unit tests
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
env:
8+
HUSKY: 0
9+
10+
jobs:
11+
unit-tests:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v6
15+
16+
- uses: actions/setup-node@v6
17+
with:
18+
node-version: 'latest'
19+
20+
- name: Enable Corepack
21+
run: corepack enable
22+
23+
- name: Install dependencies
24+
run: yarn install --immutable
25+
26+
- name: unit tests
27+
run: yarn test

0 commit comments

Comments
 (0)