Skip to content

Commit

Permalink
ar(init) Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloreale committed Aug 3, 2024
1 parent 54f6dad commit c4b5d94
Show file tree
Hide file tree
Showing 46 changed files with 8,353 additions and 0 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/sdk-js-pkg-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: js-sdk::publish_package

on:
push:
branches:
- main

jobs:
run-build:
name: js-sdk::build
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./sdk-js

steps:
- name: js-sdk::Check out Git repository and Config User
uses: actions/checkout@v3

- run: |
git config user.name github-actions
git config user.email github-actions@github.com
- name: js-sdk::Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 20

- name: js-sdk::Install Node.js dependencies
run: npm ci

- name: Build
run: npm run build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

run-publish:
name: js-sdk::publish
runs-on: ubuntu-latest
needs: run-build
permissions:
contents: write
packages: write
defaults:
run:
working-directory: ./sdk-js

steps:
- name: js-sdk::Check out Git repository and Config User
uses: actions/checkout@v3

- run: |
git config user.name github-actions
git config user.email github-actions@github.com
- name: js-sdk::Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 20

- name: js-sdk::Publish Package
run: npm publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86 changes: 86 additions & 0 deletions .github/workflows/sdk-js-pr-checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: js-sdk::checks

on:
pull_request:
branches:
- dev
- dev/*
- main
- main/*

jobs:
run-build:
name: js-sdk::build
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./sdk-js

steps:
- name: js-sdk::Check out Git repository
uses: actions/checkout@v3

- name: js-sdk::Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 20

- name: js-sdk::Install Node.js dependencies
run: npm ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: js-sdk::Build
run: npm run build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

run-lint:
name: js-sdk::lint
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./sdk-js

steps:
- name: js-sdk::Check out Git repository
uses: actions/checkout@v3

- name: js-sdk::Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 20

# ESLint and Prettier must be in `package.json`
- name: js-sdk::Install Node.js dependencies
run: npm ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: js-sdk::Run linters
run: npm run ci:format

run-test:
name: js-sdk::test
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./sdk-js

steps:
- name: js-sdk::Check out Git repository
uses: actions/checkout@v3

- name: js-sdk::Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 20

# ESLint and Prettier must be in `package.json`
- name: js-sdk::Install Node.js dependencies
run: npm ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: js-sdk::Run tests
run: npm run test
13 changes: 13 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"


# sdk-js pre-commit checks
echo "----nestor::sdk-js::pre-commit-checks----"
cd ./sdk-js

npm run format
npm run lint

# add other lib checks here

Binary file added kafka/.DS_Store
Binary file not shown.
34 changes: 34 additions & 0 deletions kafka/.bashrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# If not running interactively, don't do anything
[ -z "$PS1" ] && return

# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace

# append to the history file, don't overwrite it
shopt -s histappend

# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color) color_prompt=yes;;
esac
Loading

0 comments on commit c4b5d94

Please sign in to comment.