Skip to content

Commit

Permalink
Update build-and-test-dev-image to use localprod
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianjoel committed Sep 7, 2023
1 parent ab1104f commit 041affe
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env:
NG_CLI_ANALYTICS: ci

jobs:
build-and-test-dev-image:
build-and-test-prod-image:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
Expand All @@ -27,13 +27,27 @@ jobs:
uses: actions/checkout@v3
with:
path: "./openslides-client"
- name: Start dev setup
run: make run-dev ARGS="-d"
- name: Start setup
run: |
cp openslides-backend/global/data/example-data.json openslides-datastore-service/cli/
cd dev/localprod/
./setup.sh
sed -i '/x-default-environment/a \ \ DATASTORE_INITIAL_DATA_FILE: cli/example-data.json' docker-compose.yml
docker-compose build --parallel
docker-compose up -d
- name: Wait for dev setup
uses: iFaxity/[email protected]
with:
resource: https://localhost:8000
timeout: 330000
timeout: 30000
- name: Setup initial data
run: |
cd dev/localprod/
docker-compose exec datastoreWriter python cli/create_initial_data.py
- name: Create initial data
run: |
cd dev/localprod/
./openslides initial-data
- name: Start tests
working-directory: "./openslides-client"
run: make run-playwright
Expand All @@ -43,9 +57,11 @@ jobs:
name: playwright-report
path: "./openslides-client/client/tests/playwright-report/"
retention-days: 7
- name: Shut down dev setup
- name: Shut down setup
if: always()
run: make stop-dev
run: |
cd dev/localprod/
docker-compose down --volumes --remove-orphans
build-and-check-dev-image:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 041affe

Please sign in to comment.