Change order of steps #5
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: Docker Image Build & CI Tests | |
on: | |
push: | |
branches: | |
- main | |
- v0.2.x-alpha | |
tags: [ tmp-rerun ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
name: build and test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build the Docker image | |
run: make build | |
- name: Create pgadmin_data volume | |
run: sudo mkdir -p pgadmin_data && sudo chown -R 5050:5050 ./pgadmin_data/ | |
- name: Initialize environment variables | |
run: ./init/load_fief_env.sh -user-email [email protected] --user-password=123456*abcdef | |
- name: Run all service containers | |
run: docker-compose up -d | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
- name: Initialize Fief database | |
run: ./run_after_db.py \"make fief-create-db\" | |
- name: run tests | |
run: docker exec api-pgd_web_1 /bin/bash -c "./run_after_db.py \"pytest tests/\"" |