From 05e1f411e817660fb4a804977f258ce6bcacd38d Mon Sep 17 00:00:00 2001 From: jfet97 Date: Mon, 29 Sep 2025 09:50:12 +0200 Subject: [PATCH 1/4] feat: Add CI workflow and integrate with release process --- .github/workflows/ci.yml | 135 +++++++++++++++++++++++++++++++++ .github/workflows/release.yaml | 4 + 2 files changed, 139 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000000..49ce8714d0 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,135 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + workflow_call: + +env: + CI: true + +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + timeout-minutes: 15 + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: latest + + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: latest + run_install: false + + - name: Get pnpm store directory + id: pnpm-cache + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT + + - name: Setup pnpm cache + uses: actions/cache@v4 + with: + path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Run lint + run: pnpm lint + + build: + name: Build + needs: [lint] + runs-on: ubuntu-latest + timeout-minutes: 15 + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: latest + + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: latest + run_install: false + + - name: Get pnpm store directory + id: pnpm-cache + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT + + - name: Setup pnpm cache + uses: actions/cache@v4 + with: + path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Run build + run: pnpm build + + test: + name: Test + needs: [build] + runs-on: ubuntu-latest + timeout-minutes: 15 + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: latest + + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: latest + run_install: false + + - name: Get pnpm store directory + id: pnpm-cache + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT + + - name: Setup pnpm cache + uses: actions/cache@v4 + with: + path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Run tests + run: pnpm test \ No newline at end of file diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f1b99b7663..3a98b3639d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -7,7 +7,11 @@ env: CI: true PNPM_CACHE_FOLDER: .pnpm-store jobs: + ci: + uses: ./.github/workflows/ci.yml + version: + needs: [ci] timeout-minutes: 15 runs-on: ubuntu-latest steps: From 45cb6473053026b6a9f1d2bdc56ffecadeb9dc56 Mon Sep 17 00:00:00 2001 From: jfet97 Date: Mon, 29 Sep 2025 10:07:01 +0200 Subject: [PATCH 2/4] fix lint issues --- .../vue-components/src/components/OmegaForm/OmegaArray.vue | 6 ++---- .../src/components/OmegaForm/OmegaAutoGen.vue | 6 ++---- .../src/components/OmegaForm/OmegaFormInput.vue | 6 ++---- .../src/components/OmegaForm/OmegaWrapper.vue | 6 ++---- .../components/OmegaForm/createUseFormWithCustomInput.ts | 2 +- packages/vue-components/stories/OmegaForm/CustomInput.vue | 2 +- 6 files changed, 10 insertions(+), 18 deletions(-) diff --git a/packages/vue-components/src/components/OmegaForm/OmegaArray.vue b/packages/vue-components/src/components/OmegaForm/OmegaArray.vue index a7777246df..67f73d00f0 100644 --- a/packages/vue-components/src/components/OmegaForm/OmegaArray.vue +++ b/packages/vue-components/src/components/OmegaForm/OmegaArray.vue @@ -42,11 +42,9 @@