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

58 lines
1.3 KiB

name: Automation Tests
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
- uses: actions/setup-node@v2
with:
node-version: '14'
- uses: actions/cache@v2
with:
path: './src/Ombi/ClientApp/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- uses: actions/cache@v2
with:
path: './tests/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install Frontend Deps
run: yarn --cwd ./src/Ombi/ClientApp install
- name: Install Automation Deps
run: yarn --cwd ./tests install
- name: Start Backend
run: |
nohup dotnet run -p ./src/Ombi -- --host http://*:3577 &
- name: Start Frontend
run: |
nohup yarn --cwd ./src/Ombi/ClientApp start &
- name: Cypress Tests
uses: cypress-io/github-action@v2.8.2
with:
browser: chrome
headless: true
working-directory: tests
wait-on: http://localhost:3577/
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}