You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ombi/.github/workflows/cypress.yml

55 lines
1.2 KiB

3 years ago
name: Automation Tests
3 years ago
on:
push:
branches: [ feature/automation ]
pull_request:
branches: [ feature/automation ]
jobs:
automation-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
3 years ago
- uses: actions/setup-node@v2
3 years ago
with:
3 years ago
node-version: '14'
3 years ago
3 years ago
- uses: actions/cache@v2
with:
path: '**/node_modules'
3 years ago
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install Frontend Deps
3 years ago
run: yarn --cwd ./src/Ombi/ClientApp install
3 years ago
- name: Install Automation Deps
run: yarn --cwd ./tests install
3 years ago
- name: Start Backend
run: |
3 years ago
nohup dotnet run -p ./src/Ombi -- --host http://*:3577 &
3 years ago
- name: Start Frontend
run: |
3 years ago
nohup yarn --cwd ./src/Ombi/ClientApp start &
3 years ago
3 years ago
- name: Cypress Tests
uses: cypress-io/github-action@v2.8.2
with:
browser: chrome
headless: true
3 years ago
working-directory: tests
3 years ago
wait-on: http://localhost:3577/
3 years ago
# 7 minutes
3 years ago
wait-on-timeout: 420
3 years ago
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}