Skip to content

chore: Upgrade dependencies & fix server SKUs (#37) #66

chore: Upgrade dependencies & fix server SKUs (#37)

chore: Upgrade dependencies & fix server SKUs (#37) #66

Workflow file for this run

name: 'E2E test Terraform on Hetzner'
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
e2e-test:
name: 'Terraform'
runs-on: ubuntu-latest
concurrency:
group: e2e-test # Ensure only one e2e test runs at a time
defaults:
run:
shell: bash
env:
TF_VAR_hetzner_token: ${{ secrets.HETZNER_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_wrapper: false
- name: Generate SSH keypair
run: ssh-keygen -b 2048 -t rsa -f ~/.ssh/id_rsa -q -N ""
- name: Install kubectl
run: ./test.sh kubectl
working-directory: test
- name: Terraform Init
run: terraform init
working-directory: test
- name: Provision clusters
run: ./test.sh setup
working-directory: test
- name: Teardown clusters
if: ${{ always() }}
run: ./test.sh teardown
working-directory: test