Initial commit
This commit is contained in:
36
.github/workflows/beautify-workflow.yml
vendored
Normal file
36
.github/workflows/beautify-workflow.yml
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
name: Node.js CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- payment-abstractions
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [10.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
# - name: Install Dependecies
|
||||
# run: |
|
||||
# chmod +x .github/workflows/script/install.sh
|
||||
# .github/workflows/script/install.sh
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- run: npm -g install js-beautify
|
||||
- name: Beautify
|
||||
run: |
|
||||
chmod +x .github/workflows/scripts/install.sh
|
||||
.github/workflows/scripts/install.sh
|
||||
- run: npm install
|
||||
- run: npm run build --if-present
|
||||
- run: npm test
|
||||
env:
|
||||
CI: true
|
||||
9
.github/workflows/scripts/install.sh
vendored
Normal file
9
.github/workflows/scripts/install.sh
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
sudo apt-get update
|
||||
sudo apt -y install build-essential curl cmake pkg-config libboost-all-dev libssl-dev libzmq3-dev libunbound-dev libsodium-dev libunwind8-dev liblzma-dev libreadline6-dev libldns-dev libexpat1-dev doxygen graphviz libpgm-dev libudev-dev libusb-1.0-0-dev libhidapi-dev protobuf-compiler libprotobuf-dev xsltproc gperf autoconf automake libtool-bin libprotobuf-c-dev
|
||||
|
||||
# json files
|
||||
js-beautify $(find . -type f -name '*.json') -t -n --space-after-named-function --space-after-anon-function -B --good-stuff
|
||||
|
||||
# javascript, html and css files
|
||||
js-beautify $(find . -type f -name '*.js') $(find . -type f -name '*.html') $(find . -type f -name '*.css') -t -n --space-after-named-function --space-after-anon-function -B --good-stuff
|
||||
Reference in New Issue
Block a user