Skip to content

Some changes to execute in sequential #341

Some changes to execute in sequential

Some changes to execute in sequential #341

Workflow file for this run

name: Build-sequential
on:
push:
branches:
- ft_trysequential
jobs:
tear-down:
name: Deploy over SSH
runs-on: ubuntu-latest
steps:
- name: Deploy over SSH
uses: fifsky/ssh-action@master
with:
host: ${{ secrets.DEPLOY_HOST }}
user: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_KEY }}
command: |
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
e2e-tests:
needs: [unit-tests]

Check failure on line 25 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build-sequential

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 25, Col: 13): Job 'e2e-tests' depends on unknown job 'unit-tests'.
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm --prefix users/authservice install
- run: npm --prefix users/userservice install
- run: npm --prefix gatewayservice install
- run: npm --prefix historyservice install
- run: npm --prefix questionservice install
- run: npm --prefix roomservice install
- run: npm --prefix webapp install
- run: npm --prefix webapp run build
- run: npm --prefix webapp run test:e2e --runInBand
env :
CI : ""
deploy:
name: Deploy over SSH
runs-on: ubuntu-latest
steps:
- name: Deploy over SSH
uses: fifsky/ssh-action@master
with:
host: ${{ secrets.DEPLOY_HOST }}
user: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_KEY }}
command: |
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 up -d --pull always