Add a Helm chart for deploying host-check as a Job #12
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: tests | |
on: | |
pull_request: | |
branches: | |
- "main" | |
paths: | |
- "charts/**" | |
push: | |
branches: | |
- "main" | |
- "gh-actions" | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: docker/setup-buildx-action@v3 | |
- uses: docker/build-push-action@v5 | |
with: | |
context: "tests" | |
load: true | |
tags: tests:latest | |
- name: "Build container" | |
run: | | |
docker build tests/ -t helm-tests | |
- name: "Run Control Plane unit tests" | |
run: | | |
docker run -v "$PWD/:/charts" helm-tests bats tests/ut/xrd-control-plane | |
- name: "Run vRouter unit tests" | |
run: | | |
docker run -v "$PWD/:/charts" helm-tests bats tests/ut/xrd-vrouter | |
- name: "Run host-check unit tests" | |
run: | | |
docker run -v "$PWD/:/charts" helm-tests bats tests/ut/host-check |