From 05b634b4a13dda3e9a8fdf5340cad4f90645bd40 Mon Sep 17 00:00:00 2001 From: tidusjar Date: Tue, 28 Sep 2021 16:56:37 +0100 Subject: [PATCH] split tests and build --- .github/workflows/build.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ebd15e6d3..d37dda743 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,14 +8,10 @@ on: branches: [ develop ] jobs: - build: + build-ui: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-dotnet@v1 - with: - dotnet-version: '5.0.x' - - uses: actions/setup-node@v2 with: node-version: '14' @@ -23,7 +19,7 @@ jobs: - name: UI Install run: yarn --cwd ./src/Ombi/ClientApp install - - name: Build and Publish UI + - name: Build UI run: yarn --cwd ./src/Ombi/ClientApp run build - name: Publish UI Artifacts @@ -33,6 +29,14 @@ jobs: path: | ./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 run: | cd src/Ombi