diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml deleted file mode 100644 index d3a096a..0000000 --- a/.gitea/workflows/build.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: Build -on: - push: - branches: [main, develop] - pull_request: - branches: [main, develop] - workflow_dispatch: - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '25' - # We handle caching manually below to ensure - # corepack-managed yarn is used correctly. - - - name: Enable Corepack - run: | - corepack enable - corepack prepare yarn@stable --activate - - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - - - name: Persistent Yarn Cache - uses: actions/cache@v4 - id: yarn-cache - with: - path: ${{ github.workspace }}/.yarn/cache - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- - - - name: Install dependencies - # --immutable ensures the lockfile isn't changed (replaces --frozen-lockfile) - run: yarn install --immutable - - - name: Build Svelte App - run: yarn build - - - name: Upload Artifacts - uses: actions/upload-artifact@v4 - with: - name: build-artifacts - path: dist/ - retention-days: 7 diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml deleted file mode 100644 index 3a408f5..0000000 --- a/.gitea/workflows/deploy.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: Deploy Pipeline -on: - push: - branches: [main] - workflow_dispatch: - inputs: - environment: - description: 'Target' - required: true - default: 'production' - type: choice - options: [staging, production] - -jobs: - pipeline: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '25' - # We handle caching manually below to ensure - # corepack-managed yarn is used correctly. - - - name: Enable Corepack - run: | - corepack enable - corepack prepare yarn@stable --activate - - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - - - name: Persistent Yarn Cache - uses: actions/cache@v4 - id: yarn-cache - with: - path: ${{ github.workspace }}/.yarn/cache - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- - - - name: Install dependencies - # --immutable ensures the lockfile isn't changed (replaces --frozen-lockfile) - run: yarn install --immutable - - - name: Validation - run: | - yarn oxlint . - yarn svelte-check - - - name: Build for Production - run: yarn build - env: - NODE_ENV: production diff --git a/.gitea/workflows/lint.yml b/.gitea/workflows/lint.yml deleted file mode 100644 index c221969..0000000 --- a/.gitea/workflows/lint.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: Lint - -on: - push: - branches: - - main - - develop - - feature/* - pull_request: - branches: - - main - - develop - workflow_dispatch: - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - lint: - name: Lint Code - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '25' - # We handle caching manually below to ensure - # corepack-managed yarn is used correctly. - - - name: Enable Corepack - run: | - corepack enable - corepack prepare yarn@stable --activate - - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - - - name: Persistent Yarn Cache - uses: actions/cache@v4 - id: yarn-cache - with: - path: ${{ github.workspace }}/.yarn/cache - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- - - - name: Install dependencies - # --immutable ensures the lockfile isn't changed (replaces --frozen-lockfile) - run: yarn install --immutable - - - name: Lint - run: yarn lint diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/workflow.yml similarity index 91% rename from .gitea/workflows/test.yml rename to .gitea/workflows/workflow.yml index 16e00aa..dcf6c96 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/workflow.yml @@ -1,14 +1,13 @@ -name: Test +name: Workflow on: push: - branches: [main, develop, "feature/*"] + branches: [main, develop] pull_request: branches: [main, develop] workflow_dispatch: jobs: - test: - name: Svelte Checks + build: runs-on: ubuntu-latest steps: - name: Checkout repository @@ -43,8 +42,11 @@ jobs: # --immutable ensures the lockfile isn't changed (replaces --frozen-lockfile) run: yarn install --immutable - - name: Type Check - run: yarn check:shadcn-excluded + - name: Build Svelte App + run: yarn build - name: Lint run: yarn lint + + - name: Type Check + run: yarn check:shadcn-excluded