Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable tests for frontend #103

Merged
merged 3 commits into from
Nov 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion pipelines/full-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,28 @@ stages:
- publish: $(System.DefaultWorkingDirectory)
artifact: working

- job: build_frontend
- job: test_frontend
dependsOn: build_python
timeoutInMinutes: 10
displayName: Test Frontend Code
steps:
- checkout: none
- download: current
artifact: working
- task: NodeTool@0
displayName: 'Use Node 18.x'
inputs:
versionSpec: 18.x
- script: |
set -xv # Echo commands before they are run
yarn install
CI=true npm test

workingDirectory: $(Pipeline.Workspace)/working/assemblyline-ui-frontend/
displayName: Test Frontend

- job: build_frontend
dependsOn: test_frontend
displayName: Build Frontend Image
steps:
- checkout: none
Expand Down