From 2add17a2ec8bb4b06c8b3dc98ee83b15375576b7 Mon Sep 17 00:00:00 2001 From: gc <30398469+gc@users.noreply.github.com> Date: Thu, 22 Feb 2024 17:45:33 +1100 Subject: [PATCH] cleanup ci tests --- .github/workflows/codequality.yml | 69 ------------------- .../{inttests.yml => integration_tests.yml} | 0 .../workflows/{test.yml => unit_tests.yml} | 9 +++ 3 files changed, 9 insertions(+), 69 deletions(-) delete mode 100644 .github/workflows/codequality.yml rename .github/workflows/{inttests.yml => integration_tests.yml} (100%) rename .github/workflows/{test.yml => unit_tests.yml} (80%) diff --git a/.github/workflows/codequality.yml b/.github/workflows/codequality.yml deleted file mode 100644 index dbc51150ef..0000000000 --- a/.github/workflows/codequality.yml +++ /dev/null @@ -1,69 +0,0 @@ -name: Code Quality - -on: - push: - branches: - - master - - bso - pull_request: - -jobs: - ESLint: - name: ESLint - runs-on: ubuntu-latest - steps: - - name: Checkout Project - uses: actions/checkout@v3 - - name: Use Node.js 18.12.0 - uses: actions/setup-node@v3 - with: - node-version: 18.12.0 - cache: yarn - - name: Restore CI Cache - uses: actions/cache@v3 - with: - path: node_modules - key: ${{ runner.os }}-18-${{ hashFiles('**/yarn.lock') }} - - name: Install Dependencies - run: yarn --frozen-lockfile - - name: Generate Prisma Client - run: yarn gen - - name: Run ESLint on changed files - uses: tj-actions/eslint-changed-files@v21 - with: - skip_annotations: true - config_path: ".eslintrc.json" - ignore_path: ".eslintignore" - file_extensions: | - **/*.ts - **/*.tsx - - Typescript: - name: Typescript - runs-on: ubuntu-latest - steps: - - name: Checkout Project - uses: actions/checkout@v3 - - name: Use Node.js 18.12.0 - uses: actions/setup-node@v3 - with: - node-version: 18.12.0 - cache: yarn - - name: Restore CI Cache - uses: actions/cache@v3 - with: - path: node_modules - key: ${{ runner.os }}-18-${{ hashFiles('**/yarn.lock') }} - - name: Install Dependencies - run: yarn --frozen-lockfile - - name: Copy Configuration - run: | - pushd src && - cp config.example.ts config.ts && - popd - - name: Copy env - run: cp .env.example .env - - name: Generate Prisma Client - run: yarn gen - - name: Build code - run: yarn build diff --git a/.github/workflows/inttests.yml b/.github/workflows/integration_tests.yml similarity index 100% rename from .github/workflows/inttests.yml rename to .github/workflows/integration_tests.yml diff --git a/.github/workflows/test.yml b/.github/workflows/unit_tests.yml similarity index 80% rename from .github/workflows/test.yml rename to .github/workflows/unit_tests.yml index 82a0ad2867..bdfa62cdbc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/unit_tests.yml @@ -40,6 +40,15 @@ jobs: run: cp .env.example .env - name: Generate Prisma Client run: yarn gen + - name: Run ESLint on changed files + uses: tj-actions/eslint-changed-files@v21 + with: + skip_annotations: true + config_path: ".eslintrc.json" + ignore_path: ".eslintignore" + file_extensions: | + **/*.ts + **/*.tsx - name: Build run: yarn build - name: Test