Skip to content

Add Kubernetes deployment for preprod #441

Add Kubernetes deployment for preprod

Add Kubernetes deployment for preprod #441

Workflow file for this run

name: CI for pr
on:
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:
jobs:
tag-pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Tag PR
uses: release-drafter/release-drafter@v5
with:
name: PR ${{ github.ref }}
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-and-test:
runs-on: ubuntu-latest
env:
BUILD_TARGET: 'test'
TAG: '2.0'
steps:
- uses: actions/checkout@v2
- name: Build for tests
run: |
echo "Building containers"
docker compose --profile e2e -f docker-compose-dev.yml config
docker compose --profile e2e -f docker-compose-dev.yml build
echo "Containers built"
- name: Run backend tests
run: make test-backend
env:
OS_USERNAME: ${{ secrets.OS_USERNAME }}
OS_PASSWORD: ${{ secrets.OS_PASSWORD }}
OS_PROJECT_NAME: ${{ secrets.OS_PROJECT_NAME }}
- name: Test frontend is alive
run: make test-frontend-alive
- name: Run frontend end-to-end tests
run: docker compose --profile e2e -f docker-compose-dev.yml up --abort-on-container-exit --exit-code-from cypress