feat: unlock frontend tests in all branches

This commit is contained in:
Mangiang 2021-11-14 14:39:07 -05:00
parent 059473199b
commit 3f22030648

View File

@ -8,10 +8,6 @@ concurrency:
trigger:
event:
- push
branch:
- master
- main
- development
steps:
- name: replace hosts and user variables
@ -35,7 +31,7 @@ steps:
- sed -i 's/{{ DEPLOY_SSH_KEY_PASSPHRASE }}/'"$DEPLOY_SSH_KEY_PASSPHRASE"'/g' ./.ansible-items/inventory
- sed -i 's/{{ DEPLOY_USER }}/'"$DEPLOY_USER"'/g' ./.ansible-items/inventory
- name: build frontend
- name: install frontend dependencies
image: node:lts-alpine3.14
commands:
- node -v
@ -47,6 +43,30 @@ steps:
- mv ./items/frontend/build/* ./items/api/public
- rm ./items/api/public/index.html
- name: test frontend
image: node:lts-alpine3.14
commands:
- node -v
- npm -v
- yarn --version
- yarn --cwd ./items/frontend cy:run
- name: build frontend
image: node:lts-alpine3.14
commands:
- node -v
- npm -v
- yarn --version
- yarn --cwd ./items/frontend build --pure-lockfile
- rm -rf ./items/api/public/static/*
- mv ./items/frontend/build/* ./items/api/public
- rm ./items/api/public/index.html
when:
branch:
- main
- master
- development
- name: check ansible syntax
image: plugins/ansible:3
settings: