feat: 142 update password auth workflow #354
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 Test | |
on: | |
pull_request: | |
branches: [ main ] | |
paths-ignore: | |
- '**.md' | |
env: | |
python_version: '3.10' | |
java_version: '11' # needed by setup-openapi-generator.sh | |
jobs: | |
build-test: | |
runs-on: ubuntu-latest | |
permissions: write-all | |
name: Build & Test | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up JDK ${{ env.java_version }} | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ env.java_version }} | |
distribution: 'temurin' | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.python_version }} | |
- name: Docker Compose DB/Liquibase for db-gen.sh | |
run: docker-compose --env-file ./config/.env.local up -d liquibase | |
working-directory: ${{ github.workspace }} | |
- name: Generate DB code | |
run: | | |
scripts/db-gen.sh | |
- name: Generate API code | |
run: | | |
scripts/setup-openapi-generator.sh | |
scripts/api-gen.sh | |
- name: Run lint checks | |
run: | | |
scripts/lint-tests.sh | |
- name: Unit tests - API | |
run: | | |
scripts/api-tests.sh --folder api | |
- name: Unit tests - Python Functions | |
run: | | |
scripts/api-tests.sh --folder functions-python |