From f920ef48e9d665541b304ea7e3e0dd8fcb68d106 Mon Sep 17 00:00:00 2001 From: JasterV <49537445+JasterV@users.noreply.github.com> Date: Sun, 1 Jun 2025 17:51:55 +0200 Subject: [PATCH] [chore] Add a new CI workflow to run checks --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ .github/workflows/deploy.yml | 11 +++++++++-- package.json | 2 +- 3 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ff8eda1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c79069b..acf32dc 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 diff --git a/package.json b/package.json index f634eb5..5be14b9 100644 --- a/package.json +++ b/package.json @@ -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" },