X-Test #2007
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: X-Test | |
on: | |
pull_request: | |
repository_dispatch: | |
types: [xtest] | |
schedule: | |
- cron: "30 9,21 * * *" | |
workflow_dispatch: | |
inputs: | |
backendVersion: | |
required: true | |
type: string | |
jobs: | |
cross-client-test: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: xtest | |
permissions: | |
contents: read | |
packages: read | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Node 18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18.x" | |
registry-url: https://npm.pkg.github.com | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
# todo: install and activate virtual env for python? | |
- name: update packages | |
run: |- | |
npm ci | |
npm install @opentdf/cli@${{ github.event.client_payload.version }} @opentdf/client@${{ github.event.client_payload.version }} | |
npm list | |
pip3 install -r requirements.txt | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: yokawasa/[email protected] | |
with: | |
setup-tools: | | |
kubectl | |
helm | |
tilt | |
# This should be in sync with the minikube-deployed kube version below | |
kubectl: "1.24.1" | |
helm: "3.9.2" | |
tilt: "0.31.2" | |
- run: | | |
kubectl version --client | |
kustomize version | |
tilt version | |
- name: start minikube | |
id: minikube | |
uses: medyagh/setup-minikube@master | |
with: | |
minikube-version: 1.26.0 | |
# This should be in sync with the setup-tools version above | |
kubernetes-version: 1.24.1 | |
- name: Run tilt | |
run: |- | |
[[ -z "${{github.event.inputs.backendVersion}}" ]] && export BACKEND_LATEST_VERSION=$(skopeo list-tags docker://ghcr.io/opentdf/charts/backend \ | |
| python3 -c "import sys, json; sys.stdout.write([tag for tag in json.load(sys.stdin)['Tags'] if not tag.endswith('.sig')][-1])") || export BACKEND_LATEST_VERSION="${{github.event.inputs.backendVersion}}" | |
echo "Testing Backend [$BACKEND_LATEST_VERSION]">>$GITHUB_STEP_SUMMARY | |
kubectl version | |
tilt ci |