Skip to content

Commit

Permalink
Add job to run e2e tests on feature branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
danhumphreys-moj committed Sep 11, 2024
1 parent 232af8a commit d686fcc
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,35 @@ jobs:
root: .
paths:
- docker_cache
run_cas3_e2e_tests:
executor:
name: unit-test-gradle
steps:
- checkout:
path: ./hmpps-approved-premises-api
- run:
name: Install and set Linuxbrew
command: |
sudo apt-get install build-essential curl file git
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
echo 'export PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin/:$PATH"' >> $BASH_ENV
echo 'export MANPATH="/home/linuxbrew/.linuxbrew/share/man:$MANPATH"' >> $BASH_ENV
echo 'export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:$INFOPATH"' >> $BASH_ENV
- run:
name: "Install dependencies"
command: |
brew install node nodenv
- run:
name: Clone ap-tools and UI
command: |
git clone https://github.com/ministryofjustice/hmpps-approved-premises-tools.git
git clone https://github.com/ministryofjustice/hmpps-temporary-accommodation-ui.git
export LOCAL_CAS_API_PATH=/home/circleci/project/hmpps-approved-premises-api
export LOCAL_CAS_UI_PATH=/home/circleci/project/hmpps-temporary-accommodation-ui
chmod +x ./hmpps-temporary-accommodation-ui/script/setup
./hmpps-temporary-accommodation-ui/script/setup
printenv
ls
build:
environment:
_JAVA_OPTIONS: "-Xmx3g"
Expand Down Expand Up @@ -352,6 +381,7 @@ workflows:
version: 2
build-test-and-deploy:
jobs:
- run_cas3_e2e_tests
- build
- code_linting_check_with_ktlint:
requires:
Expand Down

0 comments on commit d686fcc

Please sign in to comment.