[chore] Add a new CI workflow to run checks

This commit is contained in:
JasterV 2025-06-01 17:51:55 +02:00
parent e2eef059b7
commit f920ef48e9
3 changed files with 35 additions and 3 deletions

25
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,25 @@
name: Run CI checks
on:
push:
jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v4
- name: Install bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: |
bun install
- name: Run check
run: |
bun run check

View file

@ -15,16 +15,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: |
bun install
- name: Run check
run: |
bun run check
- name: 🔨 Build Project
run: |
bun install
bun run build
- name: 📂 Sync files

View file

@ -7,7 +7,7 @@
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"check": "astro check",
"check": "astro check && prettier ./src --check",
"format": "prettier ./src --write",
"astro": "astro"
},