Update motion workflow export #3540
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
branches: [main] | |
env: | |
NG_CLI_ANALYTICS: ci | |
jobs: | |
build-and-test-prod-image: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone main repo | |
uses: actions/checkout@v3 | |
with: | |
repository: OpenSlides/OpenSlides | |
path: "." | |
ref: main | |
submodules: true | |
- name: Checkout latest commits | |
run: git submodule foreach 'git checkout main && git pull origin main' | |
- name: Delete the client folder | |
run: rm -r openslides-client | |
- name: Clone openslides-client | |
uses: actions/checkout@v3 | |
with: | |
path: "./openslides-client" | |
- name: Copy example data | |
run: cp openslides-backend/global/data/example-data.json openslides-datastore-service/cli/ | |
- name: Start setup | |
working-directory: "./dev/localprod" | |
run: | | |
./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: 30000 | |
- name: Setup initial data | |
working-directory: "./dev/localprod" | |
run: docker-compose exec -T datastoreWriter python cli/create_initial_data.py | |
- name: Start tests | |
working-directory: "./openslides-client" | |
run: make run-playwright | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: playwright-report | |
path: "./openslides-client/client/tests/playwright-report/" | |
retention-days: 7 | |
- name: Shut down setup | |
if: always() | |
working-directory: "./dev/localprod" | |
run: docker-compose down --volumes --remove-orphans | |
build-and-test-dev-image: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: create docker dev image | |
run: make build-dev | |
- name: Check linting | |
run: make run-check-linting | |
- name: Check prettifying | |
run: make run-check-prettifying | |
- name: Run karma tests | |
run: make run-karma-tests |