Workflows
This commit is contained in:
@@ -1,19 +1,13 @@
|
||||
name: Docker Image CI for GHCR
|
||||
|
||||
on:
|
||||
push:
|
||||
workflow_run:
|
||||
workflows: ["Run Unit-Tests"]
|
||||
types:
|
||||
- completed
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
test_frontend:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Run Unit-Tests
|
||||
run: |
|
||||
cd client
|
||||
npm install
|
||||
npm run test
|
||||
build_and_publish_backend:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
26
.github/workflows/test.yml
vendored
Normal file
26
.github/workflows/test.yml
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
name: Run Unit-Tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["*"] # Alle Branches
|
||||
tags: ["*"] # Alle Tags
|
||||
|
||||
jobs:
|
||||
test_frontend:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Run Unit-Tests Frontend
|
||||
run: |
|
||||
cd client
|
||||
npm install
|
||||
npm run test
|
||||
test_backend:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Run Unit-Tests Backend
|
||||
run: |
|
||||
cd api
|
||||
npm install
|
||||
npm run test
|
||||
Reference in New Issue
Block a user