fix port environment variable #53
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
# Reference: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions | |
name: Changes on 'main' branch | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
qa: | |
name: Quality Assurance | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: "1.74" | |
components: clippy | |
- name: Cache cargo output | |
uses: Swatinem/rust-cache@v2 | |
with: | |
cache-directories: third-party | |
- name: Run clippy | |
run: cargo clippy | |
- name: Create k8s Kind Cluster | |
uses: helm/kind-action@v1.8.0 | |
with: | |
cluster_name: app-testing | |
config: tests/kind_config.yml | |
- name: Create k8s test resources | |
run: | | |
kubectl apply -f tests/k8s_test_namespaces.yml | |
sleep 1 | |
kubectl apply -f tests/k8s_test_resources.yml | |
kubectl wait --for=condition=Ready --timeout=10s --all pods --all-namespaces | |
- name: Run tests | |
run: cargo test |