[feat] upgrade helm charts #182
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: NodeJS build App | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
# strategy: | |
# matrix: | |
# node-version: [16.x, 18.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
- name: Install dependencies | |
run: yarn | |
- name: Run lint code | |
run: yarn run lint | |
- name: Compile application to binary | |
run: yarn run build | |
- name: Archive binary | |
uses: actions/upload-artifact@v3 | |
with: | |
name: helm-assistant-linux-amd64 | |
path: helm-assistant | |
tests: | |
runs-on: ubuntu-latest | |
needs: [build] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install helm and kubectl | |
run: | | |
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" | |
curl -LO "https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256" | |
echo "$(cat kubectl.sha256) kubectl" | sha256sum --check | |
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl | |
kubectl completion bash > /etc/bash_completion.d/kubectl | |
kubectl version --client | |
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash | |
helm completion bash > /etc/bash_completion.d/helm | |
helm version | |
helm plugin install https://github.com/helm-unittest/helm-unittest.git | |
- uses: actions/download-artifact@v3 | |
with: | |
name: helm-assistant-linux-amd64 | |
path: . | |
# - name: Start minikube | |
# uses: medyagh/setup-minikube@master | |
# | |
# - name: Try the cluster ! | |
# run: kubectl get pods -A | |
- name: Run test -> deploy_worker | |
run: | | |
ls -lah | |
export HELM_ASSISTANT_BIN_CMD="./helm-assistant-linux-amd64" | |
export TESTS_PWD=$(pwd)/tests/ | |
bash tests/deploy_worker.sh |