E2E Conformance Tests #401
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: E2E Conformance Tests | |
on: | |
workflow_dispatch: {} | |
schedule: | |
- cron: "0 0 * * *" # Run Everyday at Midnight | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
build-image: | |
if: github.repository == 'aws/aws-network-policy-agent' | |
runs-on: ubuntu-latest | |
outputs: | |
AWS_EKS_NODEAGENT_IMAGE: ${{steps.build-and-push-image.outputs.image_uri}} | |
steps: | |
- name: Checkout latest commit | |
uses: actions/checkout@v3 | |
- name: Install Dependencies | |
uses: ./.github/actions/install-dependencies | |
- uses: aws-actions/configure-aws-credentials@v3 | |
with: | |
role-to-assume: ${{ secrets.OSS_ROLE_ARN }} | |
aws-region: us-west-2 | |
role-duration-seconds: 3600 # 1 hour | |
- name: Build and Push Network Policy Image | |
id: build-and-push-image | |
uses: ./.github/actions/build-and-push-image | |
with: | |
aws-region: us-west-2 | |
e2e-conformance-tests: | |
needs: build-image | |
strategy: | |
fail-fast: false | |
matrix: | |
ip-family: [ IPv4, IPv6 ] | |
instance-type: ["t3.large", "t4g.large"] | |
# kubernetes-versions: ["1.25", "1.26", "1.27"] | |
if: github.repository == 'aws/aws-network-policy-agent' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout latest commit | |
uses: actions/checkout@v3 | |
- name: Install Dependencies | |
uses: ./.github/actions/install-dependencies | |
- uses: aws-actions/configure-aws-credentials@v3 | |
with: | |
role-to-assume: ${{ secrets.OSS_ROLE_ARN }} | |
aws-region: us-west-2 | |
role-duration-seconds: 18000 # 5 hours | |
- name: Run e2e conformance test | |
env: | |
RUN_CONFORMANCE_TESTS: true | |
IP_FAMILY: ${{ matrix.ip-family }} | |
INSTANCE_TYPE: ${{ matrix.instance-type }} | |
AWS_EKS_NODEAGENT_IMAGE: ${{ needs.build-image.outputs.AWS_EKS_NODEAGENT_IMAGE }} | |
TEST_IMAGE_REGISTRY: ${{ secrets.TEST_IMAGE_REGISTRY }} | |
run: | | |
./scripts/run-tests.sh |