split tests and build

pull/4329/head
tidusjar 3 years ago
parent 27421f61d7
commit 05b634b4a1

@ -8,14 +8,10 @@ on:
branches: [ develop ] branches: [ develop ]
jobs: jobs:
build: build-ui:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- uses: actions/setup-node@v2 - uses: actions/setup-node@v2
with: with:
node-version: '14' node-version: '14'
@ -23,7 +19,7 @@ jobs:
- name: UI Install - name: UI Install
run: yarn --cwd ./src/Ombi/ClientApp install run: yarn --cwd ./src/Ombi/ClientApp install
- name: Build and Publish UI - name: Build UI
run: yarn --cwd ./src/Ombi/ClientApp run build run: yarn --cwd ./src/Ombi/ClientApp run build
- name: Publish UI Artifacts - name: Publish UI Artifacts
@ -33,6 +29,14 @@ jobs:
path: | path: |
./src/Ombi/ClientApp/dist/ ./src/Ombi/ClientApp/dist/
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- name: Run Unit Tests - name: Run Unit Tests
run: | run: |
cd src/Ombi cd src/Ombi

Loading…
Cancel
Save