Support default ports
value
#118
Workflow file for this run
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-kind | |
on: [push, pull_request] | |
jobs: | |
e2e-kind: | |
runs-on: ubuntu-latest | |
if: > | |
(( github.event.pull_request.head.repo.owner.login != github.event.pull_request.base.repo.owner.login ) && | |
github.event_name == 'pull_request' ) || (github.event_name == 'push' && github.event.commits != '[]' ) | |
steps: | |
- name: Install bats | |
run: sudo apt install bats | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
- name: Setup registry | |
run: docker run -d --restart=always -p "5000:5000" --name "kind-registry" registry:2 | |
- name: Get tools | |
working-directory: ./e2e | |
run: ./get_tools.sh | |
- name: Setup cluster | |
working-directory: ./e2e | |
run: ./setup_cluster.sh | |
- name: "Test: simple" | |
working-directory: ./e2e | |
run: | | |
export TERM=dumb | |
# enable ip6_tables | |
sudo modprobe ip6_tables | |
bats ./tests/*.bats | |
- name: Export kind logs | |
if: ${{ failure() }} | |
run: | |
./e2e/bin/kind export logs /tmp/kind-logs | |
- name: Upload logs | |
uses: actions/upload-artifact@v4 | |
if: ${{ failure() }} | |
with: | |
name: kind-logs-e2e | |
path: /tmp/kind-logs/ |