From d1d671079d4888ceafda3b37258769db9156d7a0 Mon Sep 17 00:00:00 2001 From: cdxker Date: Thu, 22 Aug 2024 15:58:51 -0700 Subject: [PATCH] ops: run frontend CI action across all frontends at once, save on CI time --- .github/workflows/analytics-tests.yml | 37 ------------------- .github/workflows/chat-tests.yml | 36 ------------------ .github/workflows/dashboard-tests.yml | 37 ------------------- .../{search-tests.yml => frontend-tests.yml} | 12 +++--- 4 files changed, 5 insertions(+), 117 deletions(-) delete mode 100644 .github/workflows/analytics-tests.yml delete mode 100644 .github/workflows/chat-tests.yml delete mode 100644 .github/workflows/dashboard-tests.yml rename .github/workflows/{search-tests.yml => frontend-tests.yml} (77%) diff --git a/.github/workflows/analytics-tests.yml b/.github/workflows/analytics-tests.yml deleted file mode 100644 index 988cac67a..000000000 --- a/.github/workflows/analytics-tests.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: analytics test suite - -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref }} - cancel-in-progress: true - -on: - pull_request: - paths: - - "frontends/analytics/**" - - "frontends/shared/**" - - "frontends/config/**" - - "clients/ts-sdk/**" - -jobs: - build-test: - runs-on: blacksmith-2vcpu-ubuntu-2204 - steps: - - uses: actions/checkout@v4 - - name: Install dependencies - run: yarn --frozen-lockfile - - name: Running lint - run: yarn build --filter analytics - eslint: - runs-on: blacksmith-2vcpu-ubuntu-2204 - steps: - - uses: actions/checkout@v4 - - name: Install dependencies - run: yarn --frozen-lockfile - - name: Running lint - run: yarn lint:CI --filter analytics - - name: Annotate Code Linting Results - uses: ataylorme/eslint-annotate-action@1.0.4 - if: always() - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" - report-json: "./frontends/analytics/eslint_report.json" diff --git a/.github/workflows/chat-tests.yml b/.github/workflows/chat-tests.yml deleted file mode 100644 index 2b535365d..000000000 --- a/.github/workflows/chat-tests.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: chat test suite - -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref }} - cancel-in-progress: true - -on: - pull_request: - paths: - - "frontends/chat/**" - - "frontends/shared/**" - - "frontends/config/**" - - "clients/ts-sdk/**" -jobs: - build-test: - runs-on: blacksmith-2vcpu-ubuntu-2204 - steps: - - uses: actions/checkout@v4 - - name: Install dependencies - run: yarn --frozen-lockfile - - name: Running lint - run: yarn build --filter chat - eslint: - runs-on: blacksmith-2vcpu-ubuntu-2204 - steps: - - uses: actions/checkout@v4 - - name: Install dependencies - run: yarn --frozen-lockfile - - name: Running lint - run: yarn lint:CI --filter chat - - name: Annotate Code Linting Results - uses: ataylorme/eslint-annotate-action@1.0.4 - if: always() - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" - report-json: "./frontends/chat/eslint_report.json" diff --git a/.github/workflows/dashboard-tests.yml b/.github/workflows/dashboard-tests.yml deleted file mode 100644 index a782a96eb..000000000 --- a/.github/workflows/dashboard-tests.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: dashboard test suite - -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref }} - cancel-in-progress: true - -on: - pull_request: - paths: - - "frontends/dashboard/**" - - "frontends/shared/**" - - "frontends/config/**" - - "clients/ts-sdk/**" - -jobs: - build-test: - runs-on: blacksmith-2vcpu-ubuntu-2204 - steps: - - uses: actions/checkout@v4 - - name: Install dependencies - run: yarn --frozen-lockfile - - name: Running lint - run: yarn build --filter dashboard - eslint: - runs-on: blacksmith-2vcpu-ubuntu-2204 - steps: - - uses: actions/checkout@v4 - - name: Install dependencies - run: yarn --frozen-lockfile - - name: Running lint - run: yarn lint:CI --filter dashboard - - name: Annotate Code Linting Results - uses: ataylorme/eslint-annotate-action@1.0.4 - if: always() - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" - report-json: "./frontends/dashboard/eslint_report.json" diff --git a/.github/workflows/search-tests.yml b/.github/workflows/frontend-tests.yml similarity index 77% rename from .github/workflows/search-tests.yml rename to .github/workflows/frontend-tests.yml index 1ccb0e85b..865420dfc 100644 --- a/.github/workflows/search-tests.yml +++ b/.github/workflows/frontend-tests.yml @@ -1,4 +1,4 @@ -name: search test suite +name: Frontends test suite concurrency: group: ${{ github.workflow }}-${{ github.head_ref }} @@ -7,9 +7,7 @@ concurrency: on: pull_request: paths: - - "frontends/search/**" - - "frontends/shared/**" - - "frontends/config/**" + - "frontends/**" - "clients/ts-sdk/**" jobs: @@ -19,8 +17,8 @@ jobs: - uses: actions/checkout@v4 - name: Install dependencies run: yarn --frozen-lockfile - - name: Running lint - run: yarn build --filter search + - name: Running Build + run: yarn build eslint: runs-on: blacksmith-2vcpu-ubuntu-2204 steps: @@ -28,7 +26,7 @@ jobs: - name: Install dependencies run: yarn --frozen-lockfile - name: Running lint - run: yarn lint:CI --filter search + run: yarn lint:CI - name: Annotate Code Linting Results uses: ataylorme/eslint-annotate-action@1.0.4 if: always()