-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into bug/fix-last-commit-date-race
- Loading branch information
Showing
77 changed files
with
1,271 additions
and
540 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: Self contained integration tests | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
lexbox-api-tag: | ||
description: 'The version of lexbox-api to test' | ||
default: 'develop' | ||
required: true | ||
workflow_call: | ||
inputs: | ||
lexbox-api-tag: | ||
description: 'The version of lexbox-api to test' | ||
default: 'develop' | ||
type: string | ||
required: true | ||
|
||
jobs: | ||
execute: | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- name: Install Task | ||
uses: arduino/setup-task@v2 | ||
- run: task setup-local-env | ||
- name: setup k8s | ||
uses: helm/[email protected] | ||
with: | ||
config: deployment/gha/kind.yaml | ||
- name: Verify k8s | ||
run: | | ||
kubectl cluster-info | ||
kubectl get nodes | ||
- name: Update image lexbox-api version | ||
uses: mikefarah/yq@0b34c9a00de1c575a34eea05af1d956a525c4fc1 # v4.34.2 | ||
with: | ||
cmd: yq eval -i '(.images.[] | select(.name == "ghcr.io/sillsdev/lexbox-api").newTag) = "${{ inputs.lexbox-api-tag }}"' "./deployment/gha/kustomization.yaml" | ||
- name: deploy | ||
run: | | ||
kubectl create namespace languagedepot | ||
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.15.0/cert-manager.yaml | ||
kubectl wait --for=condition=Ready --timeout=90s pod -l 'app in (cert-manager, webhook)' -n cert-manager | ||
kubectl apply -k ./deployment/gha | ||
kubectl wait --for=condition=Ready --timeout=120s pod -l 'app.kubernetes.io/component=controller' -n languagedepot | ||
kubectl wait --for=condition=Ready --timeout=120s pod -l 'app in (lexbox, ui, hg, db)' -n languagedepot | ||
- name: status | ||
if: failure() | ||
run: | | ||
kubectl describe pods -l 'app in (lexbox, ui, hg, db)' -n languagedepot | ||
echo "========== LOGS ==========" | ||
kubectl logs -l 'app in (lexbox, ui, hg, db)' -n languagedepot --prefix --all-containers --tail=50 | ||
echo "========== INGRESS ==========" | ||
kubectl logs -l 'app.kubernetes.io/name=ingress-nginx' -n languagedepot --prefix --all-containers --tail=50 | ||
- name: forward ingress | ||
run: kubectl port-forward service/ingress-nginx-controller 6579:80 -n languagedepot & | ||
- name: verify ingress | ||
run: curl -v http://localhost:6579 | ||
- name: build | ||
run: dotnet restore LexBoxOnly.slnf && dotnet build --no-restore LexBoxOnly.slnf | ||
- name: Dotnet test | ||
env: | ||
TEST_SERVER_HOSTNAME: 'localhost:6579' | ||
TEST_STANDARD_HG_HOSTNAME: 'hg.localhost:6579' | ||
TEST_RESUMABLE_HG_HOSTNAME: 'resumable.localhost:6579' | ||
TEST_PROJECT_CODE: 'sena-3' | ||
TEST_DEFAULT_PASSWORD: 'pass' | ||
run: dotnet test LexBoxOnly.slnf --logger GitHubActions --filter "Category=Integration|Category=FlakyIntegration" --blame-hang-timeout 40m | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,6 +101,7 @@ The SvelteKit UI will be available at http://localhost:3000. | |
* http://localhost:5158/api/graphql/ui - GraphQL UI | ||
* http://localhost:8088/hg - hg web UI (add the project code and use the url in FLEx to clone) | ||
* http://localhost:1080 - maildev UI | ||
* http://localhost:4810 - pgadmin UI (username [email protected], password pass) | ||
* http://localhost:18888 - [aspire dashboard](https://learn.microsoft.com/en-us/dotnet/aspire/fundamentals/dashboard) (OTEL traces) | ||
|
||
### Seeded data | ||
|
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
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
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
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
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
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
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
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
Oops, something went wrong.