Create k8s config files: #22
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: Test Auth FastAPI App | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.12" | |
- name: Set environment variables from secrets and create .env file | |
run: | | |
mkdir -p ./test_apps/end_to_end/keys | |
echo "${{ secrets.ENV_FILE }}" > ./test_apps/end_to_end/.env | |
echo "${{ secrets.PRIVATE_KEY }}" > ./test_apps/end_to_end/keys/private_key.pem | |
echo "${{ secrets.PUBLIC_KEY }}" > ./test_apps/end_to_end/keys/public_key.pem | |
ls -al | |
- name: Run docker-compose | |
uses: hoverkraft-tech/[email protected] | |
with: | |
compose-file: "./test_apps/end_to_end/docker-compose.yml" | |
- name: Execute tests | |
run: | | |
docker start -a end_to_end-test-app-1 |