Skip to content

Adding the ci

Adding the ci #105

Workflow file for this run

name: Deploy on release
on:
release:
types: [published]
push:
branches:
- e2e
jobs:
e2etests:
name: Execute E2Etests
runs-on: ubuntu-latest
steps:
- name: Executing E2E tests
uses: fifsky/ssh-action@master
with:
host: ${{ secrets.DEPLOY_HOST }}
user: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_KEY }}
command: |
exec bash \-l
rm -r ./e2e
git clone https://github.com/Arquisoft/wiq_es05c.git e2e
cd e2e
docker compose --profile prod down
export GITHUB_ACTIONS=true
echo "The value of GITHUB ACTIONS is: $GITHUB_ACTIONS"
npm --prefix webapp ci
docker compose --profile prod up -d --pull always
sleep 30
cd webapp/e2e
jest