Fix buggy key check. #1361
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: Build and run tests for makeradmin | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
types: [synchronize, opened] | |
jobs: | |
firstrun: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Make env | |
run: make .env | |
- name: Build container | |
run: make build | |
- name: Create the database | |
run: docker compose run api bash -c 'yes "" | python3 firstrun.py' | |
env: | |
FIRSTRUN_AUTO_ADMIN_FIRSTNAME: maker | |
FIRSTRUN_AUTO_ADMIN_LASTNAME: makersson | |
FIRSTRUN_AUTO_ADMIN_EMAIL: [email protected] | |
FIRSTRUN_AUTO_ADMIN_PASSWORD: not_a_real_passw0rd | |
unit-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build docker | |
run: make build | |
- name: Run tests | |
run: make test | |
stripe-tests: | |
runs-on: ubuntu-latest | |
concurrency: stripe | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build docker | |
run: make build | |
- name: Run tests | |
run: make test | |
env: | |
STRIPE_PRIVATE_KEY: ${{ secrets.STRIPE_PRIVATE_KEY }} | |
STRIPE_PUBLIC_KEY: ${{ secrets.STRIPE_PUBLIC_KEY }} |