-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
640 changed files
with
47,736 additions
and
8,268 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
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,17 @@ | ||
name: Setup Postgres wallet plugin | ||
description: Setup Postgres wallet plugin | ||
author: 'sairanjit.tummalapalli@ayanworks.com' | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Setup Postgres wallet plugin | ||
run: | | ||
sudo apt-get install -y libzmq3-dev libsodium-dev pkg-config libssl-dev | ||
curl https://sh.rustup.rs -sSf | bash -s -- -y | ||
export PATH="/root/.cargo/bin:${PATH}" | ||
cd ../ | ||
git clone https://github.com/hyperledger/indy-sdk.git | ||
cd indy-sdk/experimental/plugins/postgres_storage/ | ||
cargo build --release | ||
shell: bash |
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,12 @@ | ||
name: Setup Postgres | ||
description: Setup Postgres | ||
author: 'sairanjit.tummalapalli@ayanworks.com' | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Setup Postgres | ||
run: | | ||
docker pull postgres | ||
docker run --name postgres -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -p 5432:5432 -d postgres | ||
shell: bash |
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,104 @@ | ||
name: Continuous Deployment | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
release-canary: | ||
runs-on: ubuntu-20.04 | ||
name: Release Canary | ||
if: "!startsWith(github.event.head_commit.message, 'chore(release): v')" | ||
steps: | ||
- name: Checkout aries-framework-javascript | ||
uses: actions/checkout@v2 | ||
with: | ||
# pulls all commits (needed for lerna to correctly version) | ||
fetch-depth: 0 | ||
|
||
# setup dependencies | ||
- name: Setup Libindy | ||
uses: ./.github/actions/setup-libindy | ||
|
||
- name: Setup NodeJS | ||
uses: ./.github/actions/setup-node | ||
with: | ||
node-version: 16 | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
|
||
# On push to main, release unstable version | ||
- name: Release Unstable | ||
run: yarn lerna publish --loglevel=verbose --canary minor --exact --force-publish --yes --no-verify-access --dist-tag alpha | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Get version number | ||
id: get-version | ||
run: | | ||
LAST_RELEASED_VERSION=$(npm view @aries-framework/core@alpha version) | ||
echo "::set-output name=version::$LAST_RELEASED_VERSION" | ||
- name: Setup git user | ||
run: | | ||
git config --global user.name "github-actions[bot]" | ||
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
- name: Set git tag | ||
run: | | ||
git tag v${{ steps.get-version.outputs.version }} | ||
git push origin v${{ steps.get-version.outputs.version }} --no-verify | ||
release-stable: | ||
runs-on: ubuntu-20.04 | ||
name: Create Stable Release | ||
# Only run if the last pushed commit is a release commit | ||
if: "startsWith(github.event.head_commit.message, 'chore(release): v')" | ||
steps: | ||
- name: Checkout aries-framework-javascript | ||
uses: actions/checkout@v2 | ||
|
||
# setup dependencies | ||
- name: Setup Libindy | ||
uses: ./.github/actions/setup-libindy | ||
|
||
- name: Setup NodeJS | ||
uses: ./.github/actions/setup-node | ||
with: | ||
node-version: 16 | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Get updated version | ||
id: new-version | ||
run: | | ||
NEW_VERSION=$(node -p "require('./lerna.json').version") | ||
echo $NEW_VERSION | ||
echo "::set-output name=version::$NEW_VERSION" | ||
- name: Create Tag | ||
uses: mathieudutour/github-tag-action@v6.0 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
custom_tag: ${{ steps.new-version.outputs.version }} | ||
|
||
- name: Create Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: v${{ steps.new-version.outputs.version }} | ||
body: | | ||
Release v${{ steps.new-version.outputs.version }} | ||
You can find the changelog in the [CHANGELOG.md](https://github.com/${{ github.repository }}/blob/main/CHANGELOG.md) file. | ||
- name: Release to NPM | ||
run: yarn lerna publish from-package --loglevel=verbose --yes --no-verify-access | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_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
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,21 @@ | ||
name: 'Lint PR' | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
|
||
jobs: | ||
main: | ||
name: Validate PR title | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Please look up the latest version from | ||
# https://github.com/amannn/action-semantic-pull-request/releases | ||
- uses: amannn/action-semantic-pull-request@v3.4.6 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
validateSingleCommit: true |
Oops, something went wrong.