Improve typing in admin #1486
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: 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: maker@bmail.com | |
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 | |
admin-frontend-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set time zone | |
run: sudo timedatectl set-timezone Europe/Stockholm | |
- name: Install packages | |
run: npm --prefix admin ci | |
- name: Run tests | |
run: npm --prefix admin run test | |
- name: Lint | |
run: npm --prefix admin run eslint | |
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 }} |