From d8636bd3e4b19c0c8a475fd31725d72af89aa43c Mon Sep 17 00:00:00 2001 From: klemek Date: Sat, 2 May 2026 21:06:03 +0200 Subject: [PATCH] ci(lint): refactor lint ci --- .github/workflows/ci.yml | 46 -------------------------------------- .github/workflows/lint.yml | 34 ++++++++++++++++++++++++++++ README.md | 2 ++ 3 files changed, 36 insertions(+), 46 deletions(-) delete mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index f15d028..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: CI - -on: [push] - -jobs: - eslint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: oven-sh/setup-bun@v2 - with: - bun-version: latest - - name: Install modules - run: bun ci - - name: Run ESLint - run: bun run lint - - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: oven-sh/setup-bun@v2 - with: - bun-version: latest - - name: Install modules - run: bun ci - - name: Build site - run: bun run build - - name: Upload static files as artifact - uses: actions/upload-pages-artifact@v3 - with: - path: dist/ - - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - permissions: - pages: write - id-token: write - runs-on: ubuntu-latest - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..d08453d --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,34 @@ +name: Lint + +concurrency: + group: lint-${{ github.ref }} + cancel-in-progress: true + +on: [push, workflow_dispatch] + +jobs: + lint-eslint: + name: 'ESLint' + runs-on: ubuntu-latest + steps: + - name: Set up Bun + uses: actions/setup-bun@v2 + - name: Checkout repository + uses: actions/checkout@v6 + - name: Install dependencies + run: bun ci + - name: Run ESLint + run: bun run lint:eslint + + tsc: + name: 'TypeScript' + runs-on: ubuntu-latest + steps: + - name: Set up Bun + uses: actions/setup-bun@v2 + - name: Checkout repository + uses: actions/checkout@v6 + - name: Install dependencies + run: bun ci + - name: Run type check + run: bun run type-check diff --git a/README.md b/README.md index 47ea242..b698ffa 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![](https://git.klemek.fr/klemek/legume/actions/workflows/lint.yml/badge.svg?branch=main&style=flat-square)](https://git.klemek.fr/klemek/legume/actions?workflow=lint.yml) [![](https://git.klemek.fr/klemek/legume/actions/workflows/deploy.yml/badge.svg?branch=main&style=flat-square)](https://git.klemek.fr/klemek/legume/actions?workflow=deploy.yml) + # Légume 🥦 *🧅 VJ Table Generator 🥕*