Bump go.uber.org/zap from 1.24.0 to 1.26.0 in /tests/starship #23
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: Starship E2E tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: {} | |
jobs: | |
e2e-test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ^1.20 | |
id: go | |
- name: Deps | |
run: | | |
cd tests/starship/ | |
go mod tidy | |
# Starship Infra setup | |
# - Connects to k8s cluster with kubeconfig (digital ocean) | |
# - Creates a new namespace based on the name (deleted in next step) | |
# - Spins up the infra with the given config file | |
# - Waits till all nodes are running (timeout 30m) | |
# - Port forward all ports to localhost for next steps to connect | |
- name: Setup Test infra | |
id: starship-action | |
uses: cosmology-tech/[email protected] | |
with: | |
values: tests/starship/configs/ci.yaml | |
port-forward: true | |
version: 0.1.46-rc1 | |
- name: Run Tests | |
id: run-tests | |
run: | | |
cd tests/starship/ | |
make test | |
- name: Run Tests (retry on failure) | |
if: steps.run-tests.outcome == 'failure' | |
run: | | |
cd tests/starship/ | |
make test | |
# Starship resource cleanup on cluster | |
- name: Cleanup cluster | |
if: always() | |
run: | | |
helm delete $DEVNET_NAME --debug --namespace $DEVNET_NAMESPACE --wait || true | |
kubectl delete namespace $DEVNET_NAMESPACE --wait=true || true | |
env: | |
DEVNET_NAME: ${{ steps.starship-action.outputs.name }} | |
DEVNET_NAMESPACE: ${{ steps.starship-action.outputs.namespace }} |