This commit is contained in:
hatim boufnichel 2022-05-15 21:24:50 +02:00
parent 8bcb3a7e85
commit de2755f8ed
173 changed files with 47169 additions and 20113 deletions

4
.github/FUNDING.yml vendored
View file

@ -1,4 +0,0 @@
# These are supported funding model platforms
github: [shocknet,]
custom: ['https://lightning.page/tcUUzRkyzXYhIZQbmopiCLREyZ_kQJqQ-C4XesecOm4.GX1Dv-eGcfKuOPobBK9Q-Sc-o697XgVCQzOCfqfimIo',]

View file

@ -1,30 +0,0 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
ignore:
- dependency-name: bitcore-lib
versions:
- 8.24.2
- 8.25.0
- 8.25.2
- 8.25.3
- 8.25.4
- 8.25.7
- 9.0.0
- dependency-name: socket.io
versions:
- 3.1.0
- dependency-name: commander
versions:
- 7.0.0
- 7.1.0
- dependency-name: lint-staged
versions:
- 10.5.3
- dependency-name: eslint-plugin-prettier
versions:
- 3.3.1

View file

@ -1,40 +0,0 @@
name: Publish Docker image
on:
release:
types: [published]
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: shockwallet/api
- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

View file

@ -1,40 +0,0 @@
name: Update Wizard
on:
push:
branches: [ 'master' ]
pull_request:
branches: [ 'master' ]
workflow_dispatch:
inputs:
name:
description: 'Bump Wizard Version'
required: false
default: 'yes'
jobs:
dispatch:
strategy:
matrix:
repo: ['shocknet/Wizard']
runs-on: ubuntu-latest
steps:
- name: 🛎️ Checkout
uses: actions/checkout@v2.3.1
with:
persist-credentials: false
ref: ${{ github.ref }}
- name: ⚙️ Install Dependencies
run: yarn install
- name: 📝 Run Tests
run: yarn test
- name: 📯 Repository Dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: ${{ matrix.repo }}
event-type: api-update
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'

View file

@ -1,36 +0,0 @@
name: Bump "package.json" Version
on:
release:
types: [prereleased, released]
jobs:
version-bump:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
persist-credentials: false
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: Get the last API TAG and current version in package.json
run: |
export RELEASE_TAG=$(git describe --tags --abbrev=0) && \
echo "VERSION=${RELEASE_TAG}" >> $GITHUB_ENV
export API_TAG=$(cat ./package.json | jq -r '.version')
echo $(if [ "$API_TAG" = "$RELEASE_TAG" ]; then echo "UPGRADEABLE=false"; else echo "UPGRADEABLE=true"; fi) >> $GITHUB_ENV
- name: Update and Commit files
if: ${{ env.UPGRADEABLE == 'true' }}
run: |
cat ./package.json | jq -r --arg API_TAG "${{ env.VERSION }}" '.version = $API_TAG' | tee a.json && mv a.json package.json
git config --local user.email "actions@shock.network"
git config --local user.name "Version Update Action"
git commit -m "version upgraded to ${{ env.VERSION }}" -a
- name: Push changes
if: ${{ env.UPGRADEABLE == 'true' }}
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: master