-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
54f6dad
commit c4b5d94
Showing
46 changed files
with
8,353 additions
and
0 deletions.
There are no files selected for viewing
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
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 }} |
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
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 |
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
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 not shown.
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
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 |
Oops, something went wrong.