From ac66390d1784d169ca805eb16bb0ae4b9b104f95 Mon Sep 17 00:00:00 2001 From: waynemwashuma <94756970+waynemwashuma@users.noreply.github.com> Date: Wed, 4 Feb 2026 22:48:03 +0300 Subject: [PATCH 1/2] Add github action job dependencies --- .github/workflows/pull-lint.yml | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pull-lint.yml b/.github/workflows/pull-lint.yml index 37136f14..bddbb4fd 100644 --- a/.github/workflows/pull-lint.yml +++ b/.github/workflows/pull-lint.yml @@ -4,21 +4,43 @@ on: pull_request: branches: ["main","dev"] jobs: - lint-src: + changes: + runs-on: ubuntu-latest + outputs: + source: ${{ steps.filter.outputs.source }} + examples: ${{ steps.filter.outputs.examples }} + steps: + - uses: actions/checkout@v4 + - uses: dorny/paths-filter@v3 + id: filter + with: + filters: | + source: + - 'src/**' + - 'packages/**' + - 'addons/**' + examples: + - 'examples/**' + lint-source: + needs: changes + if: needs.changes.outputs.source == 'true' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 - run: npm ci - run: npm run lint:src-dry -- --max-warnings=0 - lint-demos: + lint-examples: + needs: changes + if: needs.changes.outputs.examples == 'true' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 - run: npm ci - - run: npm run lint:demos-dry -- --max-warnings=0 + - run: npm run lint:examples-dry -- --max-warnings=0 tests: + needs: compiles runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -26,6 +48,7 @@ jobs: - run: npm ci - run: npm run test builds: + needs: compiles runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -33,6 +56,8 @@ jobs: - run: npm ci - run: npm run build compiles: + needs: changes + if: needs.changes.outputs.source == 'true' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 From 193671c13aa04d4795ef9d6d53d8cba5286dd611 Mon Sep 17 00:00:00 2001 From: waynemwashuma <94756970+waynemwashuma@users.noreply.github.com> Date: Tue, 10 Mar 2026 11:57:01 +0300 Subject: [PATCH 2/2] Fix ci --- .github/workflows/pull-lint.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/pull-lint.yml b/.github/workflows/pull-lint.yml index bddbb4fd..f9df4828 100644 --- a/.github/workflows/pull-lint.yml +++ b/.github/workflows/pull-lint.yml @@ -11,9 +11,12 @@ jobs: examples: ${{ steps.filter.outputs.examples }} steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - uses: dorny/paths-filter@v3 id: filter with: + token: '' filters: | source: - 'src/**'