Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run playwright tests in our gha integration test workflow #1132

Merged
merged 22 commits into from
Nov 19, 2024
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
bd8d635
run playwright tests after S&R tests in the gha k8s instance
hahn-kev Oct 17, 2024
d1a8738
ensure maildev is forwarded properly
hahn-kev Oct 17, 2024
de66267
remove comment
hahn-kev Oct 17, 2024
c168bb5
install dependancies during playwright setup
hahn-kev Oct 28, 2024
8689c8c
fix email base url for gha environment
hahn-kev Oct 29, 2024
d05abe2
fix regex used for AddMemberModal tests
hahn-kev Oct 29, 2024
b4f78d2
ensure return to path used in LoginRedirect is relative for invite em…
hahn-kev Oct 29, 2024
0c08bbe
Merge branch 'develop' into chore/playwright-in-gha-k8s
hahn-kev Nov 6, 2024
2935240
Merge remote-tracking branch 'origin/develop' into chore/playwright-i…
myieye Nov 13, 2024
0c52d88
remove self hosted step and unused inputs
hahn-kev Oct 17, 2024
022b1ca
Merge branch 'develop' into chore/playwright-in-gha-k8s
hahn-kev Nov 14, 2024
8f25bd0
fix url absolute check, ensure task setup only modifies docker-desktop
hahn-kev Nov 15, 2024
8d408b2
Exclude viewer page playwright tests in GHA
myieye Nov 15, 2024
a65d493
Run dotnet and playwright tests in parallel
myieye Nov 15, 2024
dbb46f0
Pass k8s-context to follow-up jobs and forward ports there
myieye Nov 15, 2024
8d7eb20
Revert "Pass k8s-context to follow-up jobs and forward ports there"
myieye Nov 18, 2024
39eac49
Revert "Run dotnet and playwright tests in parallel"
myieye Nov 18, 2024
f839ef4
Run Playwright tests even if dotnet tests fail
myieye Nov 18, 2024
fefddfd
Merge branch 'develop' into chore/playwright-in-gha-k8s
myieye Nov 18, 2024
1b96715
use develop image tag for lexbox-hgweb and fw-headless in gha integra…
hahn-kev Nov 19, 2024
ce96d52
remove unused environment variables from frontend tests
hahn-kev Nov 19, 2024
caf0328
pull playwright tests into a reusable action and call them from both …
hahn-kev Nov 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Pass k8s-context to follow-up jobs and forward ports there
myieye committed Nov 15, 2024
commit dbb46f045f5734ca1d84c9c86a3a67482b14b1eb
61 changes: 59 additions & 2 deletions .github/workflows/integration-test-gha.yaml
Original file line number Diff line number Diff line change
@@ -81,12 +81,40 @@ jobs:
kubectl port-forward service/lexbox 1080:1080 -n languagedepot &
- name: verify ingress
run: curl -v http://localhost:6579
- name: Save kubeconfig
run: |
mkdir -p $GITHUB_WORKSPACE/kubeconfig
cp ~/.kube/config $GITHUB_WORKSPACE/kubeconfig/config
# Upload kubeconfig as an artifact so it can be used in the next job
- name: Upload kubeconfig
uses: actions/upload-artifact@v3
myieye marked this conversation as resolved.
Show resolved Hide resolved
with:
name: kubeconfig
path: $GITHUB_WORKSPACE/kubeconfig/config

dotnet-test:
runs-on: ubuntu-latest
needs: [ start-cluster ]
timeout-minutes: 30
steps:
- name: Download kubeconfig artifact
uses: actions/download-artifact@v3
with:
name: kubeconfig

- name: Set KUBECONFIG environment variable
run: |
export KUBECONFIG=$GITHUB_WORKSPACE/kubeconfig/config
kubectl config view # Verify that the kubeconfig is loaded correctly

- name: Forward ingress
run: |
kubectl port-forward service/ingress-nginx-controller 6579:80 -n languagedepot &
kubectl port-forward service/lexbox 1080:1080 -n languagedepot &

- name: Verify ingress
run: curl -v http://localhost:6579

- uses: actions/checkout@v4
with:
submodules: true
@@ -106,6 +134,23 @@ jobs:
needs: [ start-cluster ]
timeout-minutes: 60
steps:
- name: Download kubeconfig artifact
uses: actions/download-artifact@v3
with:
name: kubeconfig

- name: Set KUBECONFIG environment variable
run: |
export KUBECONFIG=$GITHUB_WORKSPACE/kubeconfig/config
kubectl config view # Verify that the kubeconfig is loaded correctly

- name: Forward ingress
run: |
kubectl port-forward service/ingress-nginx-controller 6579:80 -n languagedepot &
kubectl port-forward service/lexbox 1080:1080 -n languagedepot &

- name: Verify ingress
run: curl -v http://localhost:6579
- uses: actions/checkout@v4
##playwright tests
# First we need to setup Node...
@@ -153,8 +198,21 @@ jobs:
if: always()
runs-on: ubuntu-latest
steps:
- name: Download kubeconfig artifact
uses: actions/download-artifact@v3
with:
name: kubeconfig

- name: Set KUBECONFIG environment variable
run: |
export KUBECONFIG=$GITHUB_WORKSPACE/kubeconfig/config
kubectl config view # Verify that the kubeconfig is loaded correctly

- name: Forward ingress
run: |
kubectl port-forward service/ingress-nginx-controller 6579:80 -n languagedepot &
kubectl port-forward service/lexbox 1080:1080 -n languagedepot &
- name: status
if: failure()
run: |
mkdir -p k8s-logs
for app in lexbox ui hg db; do
@@ -163,7 +221,6 @@ jobs:
done
kubectl logs -l 'app.kubernetes.io/name=ingress-nginx' -n languagedepot --prefix --all-containers --tail=-1 > k8s-logs/logs-ingress.txt
- name: upload status
if: failure()
uses: actions/upload-artifact@v4
with:
name: k8s-logs
Loading