From c1d2d3f15c476e256ec19e442bd68d02f9c5bc95 Mon Sep 17 00:00:00 2001 From: Sluijsens <1+sluijsens@noreply@slpsoftware.nl> Date: Fri, 24 Jul 2026 08:35:19 +0200 Subject: [PATCH 1/2] Delete .gitea/workflows/pipeline.yaml --- .gitea/workflows/pipeline.yaml | 110 --------------------------------- 1 file changed, 110 deletions(-) delete mode 100644 .gitea/workflows/pipeline.yaml diff --git a/.gitea/workflows/pipeline.yaml b/.gitea/workflows/pipeline.yaml deleted file mode 100644 index 748c60d..0000000 --- a/.gitea/workflows/pipeline.yaml +++ /dev/null @@ -1,110 +0,0 @@ -name: Build, Test and Package Release -on: - workflow_dispatch: {} - pull_request: - types: [opened, synchronize, reopened] - -jobs: - prepare: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-node@v4 - with: - node-version: '20' - - - uses: pnpm/action-setup@v4 - with: - version: 9 - - - name: Get pnpm store directory - id: pnpm-store - run: echo "path=$(pnpm store path)" >> "$GITHUB_OUTPUT" - - - name: Cache pnpm store - uses: actions/cache@v4 - with: - path: ${{ steps.pnpm-store.outputs.path }} - key: pnpm-${{ hashFiles('pnpm-lock.yaml') }} - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - build: - needs: prepare - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-node@v4 - with: - node-version: '20' - - - uses: pnpm/action-setup@v4 - with: - version: 9 - - - name: Get pnpm store directory - id: pnpm-store - run: echo "path=$(pnpm store path)" >> "$GITHUB_OUTPUT" - - - name: Restore pnpm store - uses: actions/cache@v4 - with: - path: ${{ steps.pnpm-store.outputs.path }} - key: pnpm-${{ hashFiles('pnpm-lock.yaml') }} - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Build - run: pnpm run build - - - name: Upload build artifact - uses: actions/upload-artifact@v3 - with: - name: dist - path: dist/ - retention-days: 1 - - test: - needs: build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-node@v4 - with: - node-version: '20' - - - uses: pnpm/action-setup@v4 - with: - version: 9 - - - name: Get pnpm store directory - id: pnpm-store - run: echo "path=$(pnpm store path)" >> "$GITHUB_OUTPUT" - - - name: Restore pnpm store - uses: actions/cache@v4 - with: - path: ${{ steps.pnpm-store.outputs.path }} - key: pnpm-${{ hashFiles('pnpm-lock.yaml') }} - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Lint - run: pnpm run lint - - - name: Unit tests - run: pnpm run test - - deploy: - needs: [build, test] - if: github.event_name == 'workflow_dispatch' - uses: ./.gitea/workflows/deploy.yaml - with: - artifact_name: dist - environment: production From 11250a584ebfa978aa824a9d959bdea613e71eba Mon Sep 17 00:00:00 2001 From: Sluijsens <1+sluijsens@noreply@slpsoftware.nl> Date: Fri, 24 Jul 2026 08:36:08 +0200 Subject: [PATCH 2/2] Renames ci pipeline and adds trigger when merging a pr --- .gitea/workflows/continuous_integration.yaml | 112 +++++++++++++++++++ 1 file changed, 112 insertions(+) create mode 100644 .gitea/workflows/continuous_integration.yaml diff --git a/.gitea/workflows/continuous_integration.yaml b/.gitea/workflows/continuous_integration.yaml new file mode 100644 index 0000000..25ec1fe --- /dev/null +++ b/.gitea/workflows/continuous_integration.yaml @@ -0,0 +1,112 @@ +name: Continuous Integration +on: + workflow_dispatch: {} + pull_request: + types: [opened, synchronize, reopened] + push: + branches: [main] + +jobs: + prepare: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: '20' + + - uses: pnpm/action-setup@v4 + with: + version: 9 + + - name: Get pnpm store directory + id: pnpm-store + run: echo "path=$(pnpm store path)" >> "$GITHUB_OUTPUT" + + - name: Cache pnpm store + uses: actions/cache@v4 + with: + path: ${{ steps.pnpm-store.outputs.path }} + key: pnpm-${{ hashFiles('pnpm-lock.yaml') }} + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + build: + needs: prepare + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: '20' + + - uses: pnpm/action-setup@v4 + with: + version: 9 + + - name: Get pnpm store directory + id: pnpm-store + run: echo "path=$(pnpm store path)" >> "$GITHUB_OUTPUT" + + - name: Restore pnpm store + uses: actions/cache@v4 + with: + path: ${{ steps.pnpm-store.outputs.path }} + key: pnpm-${{ hashFiles('pnpm-lock.yaml') }} + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Build + run: pnpm run build + + - name: Upload build artifact + uses: actions/upload-artifact@v3 + with: + name: dist + path: dist/ + retention-days: 1 + + test: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: '20' + + - uses: pnpm/action-setup@v4 + with: + version: 9 + + - name: Get pnpm store directory + id: pnpm-store + run: echo "path=$(pnpm store path)" >> "$GITHUB_OUTPUT" + + - name: Restore pnpm store + uses: actions/cache@v4 + with: + path: ${{ steps.pnpm-store.outputs.path }} + key: pnpm-${{ hashFiles('pnpm-lock.yaml') }} + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Lint + run: pnpm run lint + + - name: Unit tests + run: pnpm run test + + deploy: + needs: [build, test] + if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/main') + uses: ./.gitea/workflows/deploy.yaml + with: + artifact_name: dist + environment: production