mirror of
https://codeberg.org/JasterV/jaster.xyz.git
synced 2026-04-26 18:10:01 +00:00
[chore] Add a new CI workflow to run checks
This commit is contained in:
parent
e2eef059b7
commit
f920ef48e9
3 changed files with 35 additions and 3 deletions
25
.github/workflows/ci.yml
vendored
Normal file
25
.github/workflows/ci.yml
vendored
Normal 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
|
||||
11
.github/workflows/deploy.yml
vendored
11
.github/workflows/deploy.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue