-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (37 loc) · 1.29 KB
/
cli-ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Crystallize CLI
on:
push:
branches: ["main"]
pull_request:
types: [opened, synchronize, reopened]
jobs:
build-and-test:
name: 🏗️ Build and Test
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: false
- name: ⎔ Setup bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.1.45
- name: 📥 Download deps
working-directory: components/cli
run: bun install --frozen-lockfile
- name: 🔍 Valid commit message
working-directory: components/cli
if: ${{ github.event_name == 'pull_request' }}
run: bun commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
- name: 💄 Prettier
working-directory: components/cli
run: bun prettier --check .
- name: 📲 Test the builds
working-directory: components/cli
run: make build
- name: 🚀 Sync it!
env:
MARKDOWN_TO_CRYSTALLIZE_SHARED_KEY: ${{ secrets.MARKDOWN_TO_CRYSTALLIZE_SHARED_KEY }}
run: bun apps/doc-2-crystallize.ts components/cli/README.md