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
|
- name: Install Frontend Deps
|
||||||
run: yarn --cwd ./src/Ombi/ClientApp install
|
run: yarn --cwd ./src/Ombi/ClientApp install
|
||||||
|
|
||||||
- name: Build Frontend
|
- name: Start Frontend
|
||||||
run: yarn --cwd ./src/Ombi/ClientApp build
|
run: |
|
||||||
|
nohup yarn --cwd ./src/Ombi/ClientApp start &
|
||||||
|
|
||||||
- name: Build Docker Image
|
- name: Restore .NET Dependencies
|
||||||
run: docker build -t ombi src/
|
run: dotnet restore ./src/Ombi/Ombi.csproj
|
||||||
|
|
||||||
- name: Run Docker Image
|
- name: Build .NET Project
|
||||||
run: nohup docker run --rm -p 5000:5000 ombi &
|
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
|
- name: Run Wiremock
|
||||||
run: nohup docker run --rm -p 32400:8080 --name wiremock wiremock/wiremock:2.35.0 &
|
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
|
- name: Sleep for server to start
|
||||||
run: sleep 20
|
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
|
- name: Cypress Tests
|
||||||
uses: cypress-io/github-action@v4
|
uses: cypress-io/github-action@v4
|
||||||
with:
|
with:
|
||||||
|
@ -74,8 +68,8 @@ jobs:
|
||||||
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Stop Docker
|
- name: Stop Services
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
docker ps -q | xargs -I {} docker logs {}
|
pkill -f "dotnet.*Ombi" || true
|
||||||
docker container kill $(docker ps -q)
|
docker container kill wiremock || true
|
Loading…
Add table
Add a link
Reference in a new issue