| name: E2E Tests |
| |
| on: |
| push: |
| branches: |
| - main |
| - 'rel/*' |
| pull_request: |
| branches: |
| - main |
| - 'rel/*' |
| # allow manually run the action: |
| workflow_dispatch: |
| |
| concurrency: |
| group: ${{ github.workflow }}-${{ github.ref }} |
| cancel-in-progress: true |
| |
| jobs: |
| |
| build: |
| name: e2e test |
| runs-on: ubuntu-latest |
| |
| steps: |
| |
| - name: Check out code into the Go module directory |
| uses: actions/checkout@v4 |
| |
| - name: Cache Go dependency |
| uses: actions/cache@v4 |
| with: |
| path: | |
| ~/.cache/go-build |
| ~/go/pkg/mod |
| key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} |
| restore-keys: | |
| ${{ runner.os }}-go- |
| |
| - name: Cache Maven dependency |
| uses: actions/cache@v4 |
| with: |
| path: ~/.m2/repository |
| key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} |
| restore-keys: | |
| ${{ runner.os }}-maven- |
| |
| - name: Integration test |
| run: | |
| make e2e_test e2e_test_clean |