Skip to content

Commit

Permalink
feat(Windows): Add Windows nightly job
Browse files Browse the repository at this point in the history
Fixes openservicemesh#3883 Adds a nightly job for Windows tests.

Cluster is installed via AKS-engine on the CNCF subscription.

Signed-off-by: Sotiris Nanopoulos <[email protected]>
  • Loading branch information
Sotiris Nanopoulos committed Sep 15, 2021
1 parent 46339f4 commit 7171b94
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/windows-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Windows Nightly Job
on:
workflow_run:
workflows: ["Windows Images"]
types: [completed]

env:
CTR_REGISTRY: openservicemesh
CTR_TAG: latest-main

jobs:
test:
name: Windows Cluster Nightly Job
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout v2
uses: actions/checkout@v2
- name: Authenticate and set context
uses: azure/k8s-set-context@v1
with:
method: kubeconfig
kubeconfig: ${{ secrets.WINDOWS_SERVER }}
id: setcontext
- name: Test oc
run: oc version --client
- name: Setup Go 1.16
uses: actions/setup-go@v1
with:
go-version: 1.16
- name: Run e2es
run: |
make build-osm
go test ./tests/e2e -test.v -ginkgo.v -ginkgo.progress -ginkgo.focus="\bCrossPlat\b" -test.timeout 180m -deployOnWindowsWorkers=true
- name: Cleanup resources
if: ${{ always() }}
run: |
kubectl delete service vault -n osm-system --ignore-not-found --wait
2 changes: 1 addition & 1 deletion tests/e2e/e2e_egress_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var _ = OSMDescribe("HTTP and HTTPS Egress",
Bucket: 2,
},
func() {
Context("Egress", func() {
Context("CrossPlat Egress", func() {
const sourceNs = "client"

It("Allows egress traffic when enabled", func() {
Expand Down

0 comments on commit 7171b94

Please sign in to comment.