Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 4 additions & 3 deletions .github/scripts/cleanup-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

set -e

echo "cleaning up cluster"
echo "Cleaning up cluster"

# Delete all test resources in queuemessages.
if kubectl get crd queuemessages.ucp.dev >/dev/null 2>&1; then
Expand All @@ -39,9 +39,10 @@ if kubectl get crd resources.ucp.dev >/dev/null 2>&1; then
fi

# Delete all test namespaces.
echo "delete all test namespaces"
# Any namespace that is not in the list below will be deleted.
echo "Delete all test namespaces"
namespaces=$(kubectl get namespace |
grep -E '^containers.*|^dapr |^dapr-dapr.*|^demo.*|^demo-demo-.*|^eshop-containers.*|^volumes.*|^volumes-myapp.*|^azure.*' |
grep -vE '(radius-system|kube-system|kube-public|kube-node-lease|gatekeeper-system|default|dapr-system|cert-manager)' |
awk '{print $1}')
for ns in $namespaces; do
if [ -z "$ns" ]; then
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/test-aks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ on:
paths:
- "samples/**"
- ".github/workflows/**"
pull_request:
types: [opened, synchronize, reopened]
branches:
- v*.*
- edge
schedule: # Run every 2 hours
- cron: "0 */2 * * *"
env:
Expand All @@ -38,7 +43,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
- name: az CLI login
run: |
az login --service-principal \
Expand Down Expand Up @@ -107,20 +112,20 @@ jobs:
- name: eshop-azure
os: ubuntu-latest-m
runOnPullRequest: true
app: eshop
app: eshop-azure
env: azure
path: ./samples/eshop/eshop.bicep
uiTestFile: tests/eshop/eshop.app.spec.ts
deployArgs: -p environment='/planes/radius/local/resourceGroups/eshop-azure/providers/Applications.Core/environments/azure'
deployArgs: -p environment='/planes/radius/local/resourceGroups/eshop-azure/providers/Applications.Core/environments/azure' -p applicationName=eshop-azure
credential: azure
- name: eshop-aws
os: ubuntu-latest-m
runOnPullRequest: true
app: eshop
app: eshop-aws
env: aws
path: ./samples/eshop/eshop.bicep
uiTestFile: tests/eshop/eshop.app.spec.ts
deployArgs: -p environment='/planes/radius/local/resourceGroups/eshop-aws/providers/Applications.Core/environments/aws'
deployArgs: -p environment='/planes/radius/local/resourceGroups/eshop-aws/providers/Applications.Core/environments/aws' -p applicationName=eshop-aws
credential: aws
env:
BRANCH: ${{ github.base_ref || github.ref_name }}
Expand Down Expand Up @@ -159,7 +164,7 @@ jobs:
if: steps.gen-id.outputs.RUN_TEST == 'true'
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
- name: az CLI login
if: steps.gen-id.outputs.RUN_TEST == 'true'
run: |
Expand Down
8 changes: 4 additions & 4 deletions playwright/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion playwright/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"license": "ISC",
"devDependencies": {
"@playwright/test": "^1.43.0",
"@types/node": "^20.12.5",
"@types/node": "^20.12.6",
"@types/uuid": "^9.0.8",
"typescript": "^5.4.4"
},
Expand Down