From 890741335e51fea3e6503e1e3949b0bd5ee2da54 Mon Sep 17 00:00:00 2001 From: AramJonghu Date: Sun, 5 Jul 2026 19:36:19 +0200 Subject: [PATCH] update(CI): workflow updated for PR's --- .forgejo/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++ .forgejo/workflows/format.yml | 25 ---------------------- frontend/src/content/systems.md | 2 -- 3 files changed, 37 insertions(+), 27 deletions(-) create mode 100644 .forgejo/workflows/ci.yml delete mode 100644 .forgejo/workflows/format.yml diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml new file mode 100644 index 0000000..4c89a38 --- /dev/null +++ b/.forgejo/workflows/ci.yml @@ -0,0 +1,37 @@ +name: Format, lint, typecheck & build + +on: + pull_request: + branches: ["master"] + +jobs: + check: + runs-on: alpine + container: node:lts-alpine + + steps: + - name: Install dependencies + run: apk add --no-cache git + + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Install frontend deps + working-directory: frontend + run: npm install + + - name: Run eslint check + working-directory: frontend + run: npm run lint + + - name: Run typecheck + working-directory: frontend + run: npm run typecheck + + - name: Run Prettier check + working-directory: frontend + run: npx prettier --check . + + - name: Run build check + working-directory: frontend + run: npm run build diff --git a/.forgejo/workflows/format.yml b/.forgejo/workflows/format.yml deleted file mode 100644 index 3097881..0000000 --- a/.forgejo/workflows/format.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Format frontend with Prettier - -on: - push: - branches: ["master"] - -jobs: - format: - runs-on: alpine - container: node:26-alpine - - steps: - - name: Install dependencies - run: apk add --no-cache git - - - name: Checkout repo - uses: actions/checkout@v4 - - - name: Install frontend deps - working-directory: frontend - run: npm install - - - name: Run Prettier check - working-directory: frontend - run: npx prettier --check . diff --git a/frontend/src/content/systems.md b/frontend/src/content/systems.md index e8f8c20..e69de29 100644 --- a/frontend/src/content/systems.md +++ b/frontend/src/content/systems.md @@ -1,2 +0,0 @@ -## Infrastructure -