From c59ee512497c8b528905a3aa3bcb83cfdd644f05 Mon Sep 17 00:00:00 2001 From: Kevin Lu Date: Sat, 11 May 2024 23:49:26 +0000 Subject: [PATCH] Removed CICD --- .github/workflows/cypress.yml | 47 -------------------- .github/workflows/install-script.yml | 52 ----------------------- .github/workflows/jest.yml | 43 ------------------- .github/workflows/npm-publish.yml.removed | 52 ----------------------- .github/workflows/platform-build.yml | 42 ------------------ 5 files changed, 236 deletions(-) delete mode 100644 .github/workflows/cypress.yml delete mode 100644 .github/workflows/install-script.yml delete mode 100644 .github/workflows/jest.yml delete mode 100644 .github/workflows/npm-publish.yml.removed delete mode 100644 .github/workflows/platform-build.yml diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml deleted file mode 100644 index 9a7e960567..0000000000 --- a/.github/workflows/cypress.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: Cypress Tests - -on: - pull_request: - branches: - - main - - dev - paths: - - 'platform/**' - push: - branches: - - main - paths: - - 'platform/**' - - -jobs: - e2e: - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: [ubuntu-latest, macos-latest] - browser: [chrome] - node: [18, 20, 21] - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node }} - - name: Install pnpm - run: npm install -g pnpm - - name: Write to .env - run: echo "OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}\NEXT_PUBLIC_NO_TELEMETRY=true\nNEXT_PUBLIC_DEFAULT_REPO_PATH=$(pwd)\n" >> platform/.env - - name: Cypress run - if: ${{ !(matrix.os == 'ubuntu-latest' && matrix.browser == 'safari') }} - uses: cypress-io/github-action@v6 - with: - build: pnpm run build - start: pnpm start - browser: ${{ matrix.browser }} - wait-on: 'http://localhost:4000' # Waits for above - record: true - working-directory: platform - env: - CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} diff --git a/.github/workflows/install-script.yml b/.github/workflows/install-script.yml deleted file mode 100644 index e50fa75bf8..0000000000 --- a/.github/workflows/install-script.yml +++ /dev/null @@ -1,52 +0,0 @@ -name: Test Install Script - -on: - pull_request: - branches: - - main - - dev - paths: - - 'platform/**' - - bin/install_assistant.sh - push: - branches: - - main - paths: - - 'platform/**' - - bin/install_assistant.sh - -jobs: - install: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, macos-latest] - node: [18, 19, 20, 21] - shell: [bash, zsh] - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node }} - - name: Install ZSH (if required) - if: matrix.shell == 'zsh' - run: | - if ! command -v zsh &> /dev/null - then - echo "ZSH not found, installing..." - sudo apt-get update - sudo apt-get install -y zsh - else - echo "ZSH already installed." - fi - - run: | - set -e - output=$(echo "test_openai_key" | ${{ matrix.shell }} ./bin/install_assistant.sh --no-telemetry 2>&1) - if echo "$output" | grep -q "npm start --prefix"; then - echo "Keyword found, proceeding..." - else - echo "Error: 'npm start --prefix' not found in the output." >&2 - exit 1 - fi - shell: ${{ matrix.shell }} {0} diff --git a/.github/workflows/jest.yml b/.github/workflows/jest.yml deleted file mode 100644 index 4c548740d2..0000000000 --- a/.github/workflows/jest.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Jest Tests - -on: - pull_request: - branches: - - main - - dev - paths: - - 'platform/**' - push: - branches: - - main - paths: - - 'platform/**' - -jobs: - jest_unittests: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, macos-latest] - node: [18, 19, 20, 21] - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node }} - - name: Cache pnpm modules - uses: actions/cache@v2 - with: - path: | - ~/.pnpm-store - platform/node_modules - key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm- - - name: Install pnpm - run: npm install -g pnpm - - run: pnpm i -D --ignore-scripts && pnpm add jest-environment-jsdom - working-directory: platform - - run: pnpm run test:unit - working-directory: platform diff --git a/.github/workflows/npm-publish.yml.removed b/.github/workflows/npm-publish.yml.removed deleted file mode 100644 index b07aa8a649..0000000000 --- a/.github/workflows/npm-publish.yml.removed +++ /dev/null @@ -1,52 +0,0 @@ -name: NPM Publish - -on: - pull_request: - branches: - - main - push: - branches: - - main - -jobs: - publish-npm: - runs-on: ubuntu-latest - steps: - - name: Check out repository - uses: actions/checkout@v2 - with: - working-directory: ./platform - - name: Use Node.js - uses: actions/setup-node@v2 - with: - node-version: '18' - working-directory: ./platform - - name: Install pnpm - run: npm install -g pnpm - working-directory: ./platform - - name: Cache node modules - uses: actions/cache@v2 - env: - cache-name: cache-node-modules - with: - path: ~/.pnpm - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-build-${{ env.cache-name }}- - ${{ runner.os }}-build- - ${{ runner.os }}- - - name: Install dependencies - run: pnpm install - working-directory: ./platform - - name: Bump version and push tag - uses: phips28/gh-action-bump-version@master - with: - tag-prefix: '' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - working-directory: ./platform - - name: Publish to NPM - run: pnpm publish - working-directory: ./platform - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} diff --git a/.github/workflows/platform-build.yml b/.github/workflows/platform-build.yml deleted file mode 100644 index 7aa4d195ab..0000000000 --- a/.github/workflows/platform-build.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Platform Build - -on: - pull_request: - branches: - - main - - dev - paths: - - 'platform/**' - push: - branches: - - main - paths: - - 'platform/**' - -jobs: - build: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, macos-latest] - node: [18, 19, 20, 21] - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node }} - - name: Cache node modules - uses: actions/cache@v2 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('platform/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-node-${{ matrix.node }}- - ${{ runner.os }}-node- - - run: npm install - working-directory: platform - - run: npm run build - working-directory: platform - - run: npm run lint - working-directory: platform