Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
aaitor committed Dec 14, 2022
1 parent 593b397 commit 796dd9d
Show file tree
Hide file tree
Showing 26 changed files with 564 additions and 270 deletions.
6 changes: 2 additions & 4 deletions .eslintrc
@@ -1,8 +1,6 @@
{
"extends": [
"nevermined"
],
"extends": ["nevermined"],
"rules": {
"@next/next/no-html-link-for-pages": "off"
}
}
}
9 changes: 7 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Expand Up @@ -4,22 +4,27 @@ about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

## Describe the bug

A clear and concise description of what the bug is.

## To Reproduce
## To Reproduce

Steps to reproduce the behavior:

1.
2.

## Expected behavior

A clear and concise description of what you expected to happen.

## Screenshots

If applicable, add screenshots to help explain your problem.

## Additional context

Add any other context about the problem here.
4 changes: 3 additions & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Expand Up @@ -4,14 +4,16 @@ about: Suggest a new feature for this project
title: ''
labels: ''
assignees: ''

---

## Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

## Describe the solution you'd like

A clear and concise description of what you want to happen.

## Additional context

Add any other context or screenshots about the feature request here.
12 changes: 10 additions & 2 deletions .github/ISSUE_TEMPLATE/feature_ticket.md
Expand Up @@ -4,32 +4,40 @@ about: Create a feature ticket with all that is needed to start to work in it
title: ''
labels: ''
assignees: ''

---

## Description

A brief description about the feature that we want to implement

## Where (optional)

In which screen we need to work with the feature

## Benefit

The definitions of the positive impact of this feature

## Acceptance criteria

All the requirements that needs to fulfill the feature to consider complete

## Points to consider (optional)

Dependencies, or everything that is needed to consider that contribute to complete the feature

## Sources (optional)

Dependencies, or everything that is needed to consider that contribute to complete the feature

## Blockers (optional)

If there are other tickets which need to be finished in order to complete the current one

## Effort

The effort that is needed to implement the feature, it will help to define the priority of the ticket, it could be `low`, `medium` or `high`

## Impact
The positive impact that will have the feature for the project, it also help to define priority of the ticket

The positive impact that will have the feature for the project, it also help to define priority of the ticket
4 changes: 3 additions & 1 deletion .github/issue_template.md
Expand Up @@ -4,14 +4,16 @@ about: Suggest a new feature for this project
title: ''
labels: ''
assignees: ''

---

## Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

## Describe the solution you'd like

A clear and concise description of what you want to happen.

## Additional context

Add any other context or screenshots about the feature request here.
3 changes: 1 addition & 2 deletions .github/pull_request_template.md
Expand Up @@ -11,10 +11,9 @@ Related to Issue #
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

## Checklist:

- [ ] Follows the code style of this project.
- [ ] Tests Cover Changes
- [ ] Documentation

10 changes: 5 additions & 5 deletions .github/workflows/release-github.yml
Expand Up @@ -3,12 +3,12 @@ name: GitHub Release
on:
push:
tags:
- "v*.*.*"
- 'v*.*.*'

jobs:
release:
name: "Tagged Release"
runs-on: "ubuntu-latest"
name: 'Tagged Release'
runs-on: 'ubuntu-latest'
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -59,9 +59,9 @@ jobs:
branch: ${{ env.COMMIT_BRANCH }}

- name: Publish Github relase
uses: "marvinpinto/action-automatic-releases@latest"
uses: 'marvinpinto/action-automatic-releases@latest'
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
repo_token: '${{ secrets.GITHUB_TOKEN }}'
prerelease: false
files: |
CHANGELOG.md
189 changes: 94 additions & 95 deletions .github/workflows/testing.yml
Expand Up @@ -4,103 +4,102 @@ on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: Install dependencies
run: |
yarn
- name: Compile and lint
run: |
yarn run build
yarn run lint
- name: Check code formatting
run: yarn format:check
- name: Setup NVM
run: |
docker login -u ${{ secrets.NEVERMINED_DOCKER_USERNAME }} -p ${{ secrets.NEVERMINED_DOCKER_TOKEN}}
sudo chmod go+r /etc/hosts
sudo echo "127.0.0.1 nevermined-metadata" | sudo tee -a /etc/hosts
git clone https://github.com/nevermined-io/tools
cd tools
export KEEPER_OWNER_ROLE_ADDRESS="0xe2DD09d719Da89e5a3D0F2549c7E24566e947260"
rm -rf "${HOME}/.nevermined/nevermined-contracts/artifacts"
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: Install dependencies
run: |
yarn
- name: Compile and lint
run: |
yarn run build
yarn run lint
- name: Check code formatting
run: yarn format:check
- name: Setup NVM
run: |
docker login -u ${{ secrets.NEVERMINED_DOCKER_USERNAME }} -p ${{ secrets.NEVERMINED_DOCKER_TOKEN}}
sudo chmod go+r /etc/hosts
sudo echo "127.0.0.1 nevermined-metadata" | sudo tee -a /etc/hosts
git clone https://github.com/nevermined-io/tools
cd tools
export KEEPER_OWNER_ROLE_ADDRESS="0xe2DD09d719Da89e5a3D0F2549c7E24566e947260"
rm -rf "${HOME}/.nevermined/nevermined-contracts/artifacts"
export KEEPER_VERSION=develop
export SUBGRAPH_VERSION=develop
export KEEPER_VERSION=develop
export SUBGRAPH_VERSION=develop
./start_nevermined.sh --no-graph --no-node --opengsn 2>&1 | tee nevermined_tools.txt &
cd ..
./scripts/wait-nevermined.sh
- name: Run tests
run: |
export PROVIDER_KEYFILE=accounts/provider.json
export RSA_PRIVKEY_FILE=accounts/rsa_priv_key.pem
export RSA_PUBKEY_FILE=accounts/rsa_pub_key.pem
export PROVIDER_BABYJUB_SECRET=${{ secrets.PROVIDER_BABYJUB_SECRET }}
export BUYER_BABYJUB_SECRET=${{ secrets.BUYER_BABYJUB_SECRET }}
export PROVIDER_BABYJUB_PUBLIC1=${{ secrets.PROVIDER_BABYJUB_PUBLIC1 }}
export PROVIDER_BABYJUB_PUBLIC2=${{ secrets.PROVIDER_BABYJUB_PUBLIC2 }}
export BUYER_BABYJUB_PUBLIC1=${{ secrets.BUYER_BABYJUB_PUBLIC1 }}
export BUYER_BABYJUB_PUBLIC2=${{ secrets.BUYER_BABYJUB_PUBLIC2 }}
export NO_GRAPH=true
export SEED_WORDS=${{ secrets.seedWords }}
export PROVIDER_PASSWORD=secret
yarn run setup:dev
# HDWalletProvider keeps jest from exiting
yarn run test:cov -- --forceExit
- name: Start node
run: |
export PROVIDER_KEYFILE=accounts/provider.json
export RSA_PRIVKEY_FILE=accounts/rsa_priv_key.pem
export RSA_PUBKEY_FILE=accounts/rsa_pub_key.pem
export PROVIDER_BABYJUB_SECRET=${{ secrets.PROVIDER_BABYJUB_SECRET }}
export BUYER_BABYJUB_SECRET=${{ secrets.BUYER_BABYJUB_SECRET }}
export PROVIDER_BABYJUB_PUBLIC1=${{ secrets.PROVIDER_BABYJUB_PUBLIC1 }}
export PROVIDER_BABYJUB_PUBLIC2=${{ secrets.PROVIDER_BABYJUB_PUBLIC2 }}
export BUYER_BABYJUB_PUBLIC1=${{ secrets.BUYER_BABYJUB_PUBLIC1 }}
export BUYER_BABYJUB_PUBLIC2=${{ secrets.BUYER_BABYJUB_PUBLIC2 }}
export NO_GRAPH=true
export SEED_WORDS=${{ secrets.TEST_MNEMONIC }}
export PROVIDER_PASSWORD=secret
export ESTUARY_TOKEN=${{ secrets.ESTUARY_TOKEN }}
export IPFS_GATEWAY="https://ipfs.infura.io:5001"
export IPFS_PROJECT_ID=${{ secrets.IPFS_PROJECT_ID }}
export IPFS_PROJECT_SECRET=${{ secrets.IPFS_PROJECT_SECRET }}
yarn run start &
- uses: actions/checkout@v3
with:
repository: nevermined-io/sdk-dtp
ref: 'develop' # TODO: Remove this when ready to use main branch
path: sdk-dtp
token: ${{ secrets.API_TOKEN_GITHUB }}
- name: Run tests from SDK-DTP
env:
SEED_WORDS: ${{ secrets.TEST_MNEMONIC }}
NO_GRAPH: true
run: |
cd sdk-dtp
yarn
./scripts/wait-nevermined.sh
yarn test
- uses: actions/checkout@v3
with:
repository: nevermined-io/sdk-js
ref: 'develop' # TODO: Remove this when ready to use main branch
path: sdk-js
token: ${{ secrets.API_TOKEN_GITHUB }}
- name: Run tests from SDK
env:
SEED_WORDS: ${{ secrets.TEST_MNEMONIC }}
NO_GRAPH: true
run: |
cd sdk-js
yarn
./scripts/wait-nevermined.sh
yarn run integration
./start_nevermined.sh --no-graph --no-node --opengsn 2>&1 | tee nevermined_tools.txt &
cd ..
./scripts/wait-nevermined.sh
- name: Run tests
run: |
export PROVIDER_KEYFILE=accounts/provider.json
export RSA_PRIVKEY_FILE=accounts/rsa_priv_key.pem
export RSA_PUBKEY_FILE=accounts/rsa_pub_key.pem
export PROVIDER_BABYJUB_SECRET=${{ secrets.PROVIDER_BABYJUB_SECRET }}
export BUYER_BABYJUB_SECRET=${{ secrets.BUYER_BABYJUB_SECRET }}
export PROVIDER_BABYJUB_PUBLIC1=${{ secrets.PROVIDER_BABYJUB_PUBLIC1 }}
export PROVIDER_BABYJUB_PUBLIC2=${{ secrets.PROVIDER_BABYJUB_PUBLIC2 }}
export BUYER_BABYJUB_PUBLIC1=${{ secrets.BUYER_BABYJUB_PUBLIC1 }}
export BUYER_BABYJUB_PUBLIC2=${{ secrets.BUYER_BABYJUB_PUBLIC2 }}
export NO_GRAPH=true
export SEED_WORDS=${{ secrets.seedWords }}
export PROVIDER_PASSWORD=secret
yarn run setup:dev
# HDWalletProvider keeps jest from exiting
yarn run test:cov -- --forceExit
- name: Start node
run: |
export PROVIDER_KEYFILE=accounts/provider.json
export RSA_PRIVKEY_FILE=accounts/rsa_priv_key.pem
export RSA_PUBKEY_FILE=accounts/rsa_pub_key.pem
export PROVIDER_BABYJUB_SECRET=${{ secrets.PROVIDER_BABYJUB_SECRET }}
export BUYER_BABYJUB_SECRET=${{ secrets.BUYER_BABYJUB_SECRET }}
export PROVIDER_BABYJUB_PUBLIC1=${{ secrets.PROVIDER_BABYJUB_PUBLIC1 }}
export PROVIDER_BABYJUB_PUBLIC2=${{ secrets.PROVIDER_BABYJUB_PUBLIC2 }}
export BUYER_BABYJUB_PUBLIC1=${{ secrets.BUYER_BABYJUB_PUBLIC1 }}
export BUYER_BABYJUB_PUBLIC2=${{ secrets.BUYER_BABYJUB_PUBLIC2 }}
export NO_GRAPH=true
export SEED_WORDS=${{ secrets.TEST_MNEMONIC }}
export PROVIDER_PASSWORD=secret
export ESTUARY_TOKEN=${{ secrets.ESTUARY_TOKEN }}
export IPFS_GATEWAY="https://ipfs.infura.io:5001"
export IPFS_PROJECT_ID=${{ secrets.IPFS_PROJECT_ID }}
export IPFS_PROJECT_SECRET=${{ secrets.IPFS_PROJECT_SECRET }}
yarn run start &
- uses: actions/checkout@v3
with:
repository: nevermined-io/sdk-dtp
ref: 'develop' # TODO: Remove this when ready to use main branch
path: sdk-dtp
token: ${{ secrets.API_TOKEN_GITHUB }}
- name: Run tests from SDK-DTP
env:
SEED_WORDS: ${{ secrets.TEST_MNEMONIC }}
NO_GRAPH: true
run: |
cd sdk-dtp
yarn
./scripts/wait-nevermined.sh
yarn test
- uses: actions/checkout@v3
with:
repository: nevermined-io/sdk-js
ref: 'develop' # TODO: Remove this when ready to use main branch
path: sdk-js
token: ${{ secrets.API_TOKEN_GITHUB }}
- name: Run tests from SDK
env:
SEED_WORDS: ${{ secrets.TEST_MNEMONIC }}
NO_GRAPH: true
run: |
cd sdk-js
yarn
./scripts/wait-nevermined.sh
yarn run integration
2 changes: 1 addition & 1 deletion .prettierrc.js
@@ -1,3 +1,3 @@
module.exports = {
...require('eslint-config-nevermined/prettier.config'),
};
}

0 comments on commit 796dd9d

Please sign in to comment.