mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-24 23:15:23 -07:00
simple
This commit is contained in:
parent
bfcb0e5e95
commit
6022b85e3a
1 changed files with 14 additions and 20 deletions
34
.github/workflows/automation-tests.yml
vendored
34
.github/workflows/automation-tests.yml
vendored
|
@ -34,14 +34,19 @@ jobs:
|
|||
- name: Install Frontend Deps
|
||||
run: yarn --cwd ./src/Ombi/ClientApp install
|
||||
|
||||
- name: Build Frontend
|
||||
run: yarn --cwd ./src/Ombi/ClientApp build
|
||||
- name: Start Frontend
|
||||
run: |
|
||||
nohup yarn --cwd ./src/Ombi/ClientApp start &
|
||||
|
||||
- name: Build Docker Image
|
||||
run: docker build -t ombi src/
|
||||
- name: Restore .NET Dependencies
|
||||
run: dotnet restore ./src/Ombi/Ombi.csproj
|
||||
|
||||
- name: Run Docker Image
|
||||
run: nohup docker run --rm -p 5000:5000 ombi &
|
||||
- name: Build .NET Project
|
||||
run: dotnet build ./src/Ombi/Ombi.csproj --no-restore
|
||||
|
||||
- name: Start Backend
|
||||
run: |
|
||||
nohup dotnet run --project ./src/Ombi -- --host http://*:5000 &
|
||||
|
||||
- name: Run Wiremock
|
||||
run: nohup docker run --rm -p 32400:8080 --name wiremock wiremock/wiremock:2.35.0 &
|
||||
|
@ -49,17 +54,6 @@ jobs:
|
|||
- name: Sleep for server to start
|
||||
run: sleep 20
|
||||
|
||||
# - name: Start Frontend
|
||||
# run: |
|
||||
# nohup yarn --cwd ./src/Ombi/ClientApp start &
|
||||
|
||||
# - name: Install Automation Deps
|
||||
# run: yarn --cwd ./tests install
|
||||
|
||||
# - name: Start Backend
|
||||
# run: |
|
||||
# nohup dotnet run --project ./src/Ombi -- --host http://*:3577 &
|
||||
|
||||
- name: Cypress Tests
|
||||
uses: cypress-io/github-action@v4
|
||||
with:
|
||||
|
@ -74,8 +68,8 @@ jobs:
|
|||
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Stop Docker
|
||||
- name: Stop Services
|
||||
if: always()
|
||||
run: |
|
||||
docker ps -q | xargs -I {} docker logs {}
|
||||
docker container kill $(docker ps -q)
|
||||
pkill -f "dotnet.*Ombi" || true
|
||||
docker container kill wiremock || true
|
Loading…
Add table
Add a link
Reference in a new issue