chore: deleted old workflows
All checks were successful
Build docker images, publish them, deploy to test server / build (push) Successful in 57s
Mirror dev branch to remote / build (push) Successful in 17s

This commit is contained in:
2005 2024-09-09 08:16:39 +02:00
parent 5a21b908f8
commit 3e957027f5
5 changed files with 0 additions and 199 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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