Skip to content

Commit

Permalink
Add a new wokflow for all e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anusha94 committed Jun 7, 2022
1 parent f6dc397 commit b2a2c75
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/e2e-all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: e2e-suite

on:
pull_request_review:
types: ['submitted']

jobs:
e2e-all-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: Install ginkgo
run: go get github.com/onsi/ginkgo/[email protected]

- name: turn off swap
run: sudo swapoff -a

- name: Set netfilter conntrack max
run: sudo sysctl -w net.netfilter.nf_conntrack_max=131072

- id: 'reviews'
uses: 'jrylan/github-action-reviews-counter@main'
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
- # Conditionally run the next step
if: 'steps.reviews.outputs.approved >= 1 && steps.reviews.outputs.changes_requested == 0'
- name: Run all e2e tests
run: yes | make test-e2e

0 comments on commit b2a2c75

Please sign in to comment.