Fix translation limit errors at 50000 chars #133
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: CI | |
on: | |
workflow_call: | |
pull_request: | |
# NOTE: For develop & master, they are run through helm github action ./build-publish-docker-helm.yml | |
jobs: | |
pre_commit_checks: | |
name: ๐ด Pre-Commit checks ๐ด | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- name: Install poetry | |
run: pipx install poetry | |
- uses: actions/setup-python@main | |
with: | |
cache: 'poetry' | |
- run: poetry install | |
- uses: pre-commit/action@main | |
test: | |
name: ๐ด Checks & Test ๐ด | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- name: ๐ณ Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: ๐ณ Build image | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
file: Dockerfile | |
push: false | |
load: true | |
tags: ifrcgo/go-api:latest | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
- name: Docker config setup & Pull docker images | |
run: | | |
cp .env-sample .env && | |
docker compose run --rm serve ls | |
- name: ๐ฎ Validate if there are no pending django migrations. | |
run: | | |
docker compose run --rm serve ./manage.py makemigrations --check --dry-run || { | |
echo 'There are some changes to be reflected in the migration. Make sure to run makemigrations'; | |
exit 1; | |
} | |
- name: ๐ฎ Validate SentryMonitor config | |
run: | | |
docker compose run --rm serve ./manage.py cron_job_monitor --validate-only || { | |
echo 'There are some changes to be reflected in the SentryMonitor. Make sure to update SentryMonitor'; | |
exit 1; | |
} | |
- name: Run django migrations | |
run: docker compose run --rm serve ./manage.py test --keepdb -v 2 --pattern="test_fake.py" | |
- name: ๐ค Run Test ๐งช | |
run: docker compose run --rm serve pytest --reuse-db --durations=10 | |
validate_helm: | |
name: ๐ด Validate Helm ๐ด | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- name: Install Helm | |
uses: azure/setup-helm@v4 | |
- name: ๐ณ Helm lint | |
run: helm lint deploy/helm/ifrcgo-helm --values ./deploy/helm/ifrcgo-helm/values-staging.yaml | |
- name: ๐ณ Helm template | |
run: helm template deploy/helm/ifrcgo-helm --values ./deploy/helm/ifrcgo-helm/values-staging.yaml |