E2E tests #3
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 tests | |
# Run E2E tests after Unit tests (currently, they run on PRs) | |
on: | |
workflow_run: | |
workflows: [Unit tests and linters] | |
types: [completed] | |
jobs: | |
e2e-tests: | |
# Parent workflow (unit tests) must succeed | |
if: | | |
${{ github.event.workflow_run.conclusion == 'success' }} | |
runs-on: ubuntu-latest | |
environment: production | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21.x' | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
- name: E2E basic test | |
run: go run mage.go -v TestE2EBasic | |
- name: E2E NAT test | |
run: go run mage.go -v TestE2ENAT |