From 3e957027f52b0aa1e3f3c64a9bc02d675c546d9d Mon Sep 17 00:00:00 2001 From: 4o1x5 <4o1x5@4o1x5.dev> Date: Mon, 9 Sep 2024 08:16:39 +0200 Subject: [PATCH] chore: deleted old workflows --- documentation/.gitea/issue_template.yml | 47 --------------- server/.github/workflows/build_deploy_dev.yml | 59 ------------------- .../.github/workflows/build_and_deploy.yml | 33 ----------- .../workflows/build_and_deploy_dev.yml | 33 ----------- web-client/.github/workflows/playwright.yml | 27 --------- 5 files changed, 199 deletions(-) delete mode 100644 documentation/.gitea/issue_template.yml delete mode 100644 server/.github/workflows/build_deploy_dev.yml delete mode 100644 web-client/.github/workflows/build_and_deploy.yml delete mode 100644 web-client/.github/workflows/build_and_deploy_dev.yml delete mode 100644 web-client/.github/workflows/playwright.yml diff --git a/documentation/.gitea/issue_template.yml b/documentation/.gitea/issue_template.yml deleted file mode 100644 index 6f5f487..0000000 --- a/documentation/.gitea/issue_template.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: Feature request -about: File a feature request to be embedded into the documentation -title: "[FEATURE]: " -body: - - type: textarea - id: feature-description - attributes: - label: What feature would you like to add? - description: Describe carefully what you want to add to the documentation. - placeholder: It'd be great if the frontend had.... - validations: - required: true - - - type: dropdown - id: area - attributes: - label: What part of the software does this affect? - multiple: true - options: - - Frontend theme - - Frontend quality of life - - Frontend functionality - - Backend - - Authentication - - Phone client - - Desktop client - - Backend quality of life - - Technologies - - Other - validations: - required: true - - type: input - id: other - attributes: - description: If it's not included in the list above this section then what does this feature affect? - label: What other part does this affect? - placeholder: Other - validations: - required: false - - - type: checkboxes - id: not-bloat - attributes: - label: Are you sure this will route us to a brighter future? - options: - - label: Yes I think this will have an impact for the better - required: true diff --git a/server/.github/workflows/build_deploy_dev.yml b/server/.github/workflows/build_deploy_dev.yml deleted file mode 100644 index bf0b559..0000000 --- a/server/.github/workflows/build_deploy_dev.yml +++ /dev/null @@ -1,59 +0,0 @@ -name: Build docker images, publish them, deploy to test server - -on: - push: - branches: ["dev"] - - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Restore cached Primes - id: maven-cache-restore - uses: https://github.com/actions/cache/restore@v4 - with: - key: linux-maven - path: ~/.m2/repository - - - uses: https://github.com/actions/checkout@v4 - with: - repository: 'learningpulse/server' - ref: 'dev' - token: '${{ secrets.token }}' - - - name: 'Set up java 22' - uses: https://github.com/actions/setup-java@v4 - with: - java-version: "22" - distribution: "temurin" - cache: maven - - - name: Setup maven - if: steps.maven-cache.outputs.cache-hit != 'true' - uses: https://github.com/stCarolas/setup-maven@v5 - with: - maven-version: 3.9.6 - - - name: Build with Maven - run: mvn -Dtoken=${{ secrets.token }} clean compile jib:build -e - - - name: Cache local Maven repository - uses: https://github.com/actions/cache/save@v4 - id: maven-cache-save - with: - path: ~/.m2/repository - key: linux-maven - restore-keys: | - linux-maven - - # TODO trigger pull with docker - - name: executing remote ssh commands using ssh key - uses: https://github.com/appleboy/ssh-action@v1.0.3 - with: - host: ${{ secrets.HOST }} - username: ${{ secrets.USERNAME }} - key: ${{ secrets.KEY }} - port: ${{ secrets.PORT }} - script: cd services/server && git fetch --all && git reset --hard origin/dev && docker compose pull && docker compose up -d \ No newline at end of file diff --git a/web-client/.github/workflows/build_and_deploy.yml b/web-client/.github/workflows/build_and_deploy.yml deleted file mode 100644 index 3e171b6..0000000 --- a/web-client/.github/workflows/build_and_deploy.yml +++ /dev/null @@ -1,33 +0,0 @@ -on: - push: - branches: ["master"] - - -jobs: - docker: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: https://github.com/actions/checkout@v4 - - - name: Set up QEMU - uses: https://github.com/docker/setup-qemu-action@v3 - - - name: Set up Docker Buildx - uses: https://github.com/docker/setup-buildx-action@v3 - - - name: Login to GitHub Container Registry - uses: https://github.com/docker/login-action@v3 - with: - registry: git.4o1x5.dev - username: ${{ secrets.USER }} - password: ${{ secrets.TOKEN }} - - - name: Build and push - uses: docker/build-push-action@v5 - with: - context: . - platforms: linux/amd64 - push: true - tags: | - learning-pulse/web-client:latest \ No newline at end of file diff --git a/web-client/.github/workflows/build_and_deploy_dev.yml b/web-client/.github/workflows/build_and_deploy_dev.yml deleted file mode 100644 index cff3258..0000000 --- a/web-client/.github/workflows/build_and_deploy_dev.yml +++ /dev/null @@ -1,33 +0,0 @@ -on: - push: - branches: ["dev", "build-test"] - - -jobs: - docker: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: https://github.com/actions/checkout@v4 - - - name: Set up QEMU - uses: https://github.com/docker/setup-qemu-action@v3 - - - name: Set up Docker Buildx - uses: https://github.com/docker/setup-buildx-action@v3 - - - name: Login to GitHub Container Registry - uses: https://github.com/docker/login-action@v3 - with: - registry: git.4o1x5.dev - username: ${{ secrets.USER }} - password: ${{ secrets.TOKEN }} - - - name: Build and push - uses: docker/build-push-action@v5 - with: - platforms: linux/amd64 - push: true - tags: | - learning-pulse/web-client:dev - # TODO deploy \ No newline at end of file diff --git a/web-client/.github/workflows/playwright.yml b/web-client/.github/workflows/playwright.yml deleted file mode 100644 index b1b052e..0000000 --- a/web-client/.github/workflows/playwright.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Playwright Tests -on: - push: - branches: [ main, master, dev ] - pull_request: - branches: [ main, master, dev ] -jobs: - test: - timeout-minutes: 60 - runs-on: ubuntu-latest - steps: - - uses: https://github.com/docker/actions/checkout@v4 - - uses: https://github.com/docker/actions/setup-node@v4 - with: - node-version: lts/* - - name: Install dependencies - run: npm ci - - name: Install Playwright Browsers - run: npx playwright install --with-deps - - name: Run Playwright tests - run: npx playwright test - - uses: https://github.com/docker/actions/upload-artifact@v4 - if: always() - with: - name: playwright-report - path: playwright-report/ - retention-days: 30