Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump typescript from 4.9.5 to 5.4.3 #4

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
5 changes: 5 additions & 0 deletions .github/set_version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh

export GITHUB_REF_NAME=v1.0.0

sed -i -e "s#dev-dirty#${GITHUB_REF_NAME:-default}#g" dist/index.js
83 changes: 83 additions & 0 deletions .github/workflows/npm-build-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: NodeJS build App

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest
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 kubectl and helm
run: |
KUBECTL_VERSION=$(curl -L -s https://dl.k8s.io/release/stable.txt)
HELM_VERSION=$(curl -Ls https://github.com/helm/helm/releases | grep 'href="/helm/helm/releases/tag/v3.[0-9]*.[0-9]*\"' | sed -E 's/.*\/helm\/helm\/releases\/tag\/(v[0-9\.]+)".*/\1/g' | head -1)

sudo wget -q -O /usr/local/bin/kubectl https://dl.k8s.io/release/$KUBECTL_VERSION/bin/linux/amd64/kubectl
sudo chmod +x /usr/local/bin/kubectl
kubectl --client=true version

sudo wget -q https://get.helm.sh/helm-$HELM_VERSION-linux-amd64.tar.gz -O - | tar -xzO linux-amd64/helm > /usr/local/bin/helm
sudo chmod +x /usr/local/bin/helm
helm version

helm repo add someblackmagic https://someblackmagic.github.io/helm-charts/
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update



- 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: |
chmod +x helm-assistant
export HELM_ASSISTANT_BIN_CMD="./helm-assistant"
export TESTS_PWD=$(pwd)/tests/
bash tests/deploy_worker.sh

- name: Run test -> deploy_job
run: |
chmod +x helm-assistant
export HELM_ASSISTANT_BIN_CMD="./helm-assistant"
export TESTS_PWD=$(pwd)/tests/
bash tests/deploy_job.sh
30 changes: 30 additions & 0 deletions .github/workflows/publish-artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish

on:
push:
tags:
- '*'

jobs:
build:
name: Publish binaries
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: '18.x'
- run: npm i
- run: npm run build

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: crd-client-generator-js
asset_name: crd-client-generator-js-linux-amd64
tag: ${{ github.ref }}
overwrite: true
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node_modules
node_modules
dist/*
crd-client-generator-js
Empty file added .tsignore
Empty file.
Loading
Loading