Soak Tests #187
This file contains hidden or 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: Soak Tests | |
| on: | |
| workflow_dispatch: {} | |
| schedule: | |
| - cron: "0 3 * * *" # every night | |
| permissions: | |
| id-token: write | |
| contents: read | |
| jobs: | |
| integration-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout latest commit in the PR | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # refs/tags/v5.0.0 | |
| - name: Set up Go | |
| uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # refs/tags/v6.0.0 | |
| with: | |
| go-version: "1.25" | |
| - name: Set up tools | |
| run: | | |
| # Install ginkgo version from go.mod | |
| go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo | |
| curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp | |
| sudo mv /tmp/eksctl /usr/local/bin/ | |
| - name: Set up AWS credentials | |
| uses: aws-actions/configure-aws-credentials@5579c002bb4778aa43395ef1df492868a9a1c83f # refs/tags/v4.0.2 | |
| with: | |
| role-to-assume: ${{ secrets.OSS_TEST_ROLE_ARN }} | |
| role-duration-seconds: 14400 # 4 hours | |
| aws-region: us-west-2 | |
| - name: Run soak tests | |
| run: | | |
| RUN_CNI_INTEGRATION_TESTS=false RUN_SOAK_TEST=true RUN_UBUNTU_TEST=true ./scripts/run-integration-tests.sh | |
| env: | |
| AWS_DEFAULT_REGION: us-west-2 |