generated from Arquisoft/wiq_0
-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (44 loc) · 1.43 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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
cd ~
echo "Node.js version: $(node --version)"
echo "npm version: $(npm --version)"
ls -la
wget https://raw.githubusercontent.com/arquisoft/wiq_es05c/master/docker-compose.yml -O docker-compose.yml
wget https://raw.githubusercontent.com/arquisoft/wiq_es05c/master/.env -O .env
docker compose --profile prod down
ls -la
sudo rm -r ./e2e
git clone https://github.com/Arquisoft/wiq_es05c.git e2e
cd e2e
git checkout e2e
git status
export GITHUB_ACTIONS=true
echo "The value of GITHUB ACTIONS is: $GITHUB_ACTIONS"
npm --prefix users/userservice install
npm --prefix gatewayservice install
npm --prefix historyservice install
npm --prefix questionservice install
npm --prefix roomservice install
npm --prefix webapp install
npm --prefix webapp run build
sleep 30
npm --prefix webapp run test:e2e