Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix prettier lint issue #824

Open
wants to merge 1 commit into
base: testnet3
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
289 changes: 141 additions & 148 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,161 +1,154 @@
version: 2.1


orbs:
node: circleci/[email protected]

node: circleci/[email protected]

executors:
rust-node:
docker:
- image: cimg/rust:1.73-node

rust-node:
docker:
- image: cimg/rust:1.73-node

commands:
cargo_fetch:
description: "Fetches cargo packages with caching"
parameters:
working_directory:
type: string
default: .
description: >-
Path to the directory containing your crate.
steps:
- restore_cache:
keys:
- cargo-{{ checksum "<<parameters.working_directory>>/Cargo.lock" }}
- run:
working_directory: <<parameters.working_directory>>
command: cargo fetch
- save_cache:
key: cargo-{{ checksum "<<parameters.working_directory>>/Cargo.lock" }}
paths:
- ~/.cargo


setup:
description: "Sets up job"
steps:
- checkout
- cargo_fetch:
working_directory: wasm
- node/install-packages:
pkg-manager: yarn


setup-sdk:
description: "Sets up job with SDK"
steps:
- setup
- attach_workspace:
at: .

cargo_fetch:
description: "Fetches cargo packages with caching"
parameters:
working_directory:
type: string
default: .
description: >-
Path to the directory containing your crate.
steps:
- restore_cache:
keys:
- cargo-{{ checksum
"<<parameters.working_directory>>/Cargo.lock" }}
- run:
working_directory: <<parameters.working_directory>>
command: cargo fetch
- save_cache:
key:
cargo-{{ checksum
"<<parameters.working_directory>>/Cargo.lock" }}
paths:
- ~/.cargo

setup:
description: "Sets up job"
steps:
- checkout
- cargo_fetch:
working_directory: wasm
- node/install-packages:
pkg-manager: yarn

setup-sdk:
description: "Sets up job with SDK"
steps:
- setup
- attach_workspace:
at: .

jobs:
sdk:
executor: rust-node
steps:
- setup
- run: |
yarn build:all
- persist_to_workspace:
root: .
paths:
- sdk/dist/*
- wasm/dist/*


sdk-test:
executor: rust-node
steps:
- setup-sdk
- run: |
yarn test


template-node:
executor: rust-node
steps:
- setup-sdk
- run:
working_directory: create-aleo-app/template-node
command: |
yarn start

template-node-ts:
executor: rust-node
steps:
- setup-sdk
- run:
working_directory: create-aleo-app/template-node-ts
command: |
yarn start

template-extension:
executor: rust-node
steps:
- setup-sdk
- run:
working_directory: create-aleo-app/template-extension
command: |
yarn build

template-react-leo:
executor: rust-node
steps:
- setup-sdk
- run:
working_directory: create-aleo-app/template-react-leo
command: |
yarn build


check-clippy:
executor: rust-node
steps:
- checkout
- cargo_fetch:
working_directory: wasm
- run:
working_directory: wasm
command: |
cargo clippy

check-fmt:
executor: rust-node
steps:
- checkout
- cargo_fetch:
working_directory: wasm
- run:
working_directory: wasm
command: |
cargo fmt -- --check

sdk:
executor: rust-node
steps:
- setup
- run: |
yarn build:all
- persist_to_workspace:
root: .
paths:
- sdk/dist/*
- wasm/dist/*

sdk-test:
executor: rust-node
steps:
- setup-sdk
- run: |
yarn test

template-node:
executor: rust-node
steps:
- setup-sdk
- run:
working_directory: create-aleo-app/template-node
command: |
yarn start

template-node-ts:
executor: rust-node
steps:
- setup-sdk
- run:
working_directory: create-aleo-app/template-node-ts
command: |
yarn start

template-extension:
executor: rust-node
steps:
- setup-sdk
- run:
working_directory: create-aleo-app/template-extension
command: |
yarn build

template-react-leo:
executor: rust-node
steps:
- setup-sdk
- run:
working_directory: create-aleo-app/template-react-leo
command: |
yarn build

check-clippy:
executor: rust-node
steps:
- checkout
- cargo_fetch:
working_directory: wasm
- run:
working_directory: wasm
command: |
cargo clippy

check-fmt:
executor: rust-node
steps:
- checkout
- cargo_fetch:
working_directory: wasm
- run:
working_directory: wasm
command: |
cargo fmt -- --check

workflows:
version: 2
version: 2

main-workflow:
jobs:
- check-fmt
- check-clippy
- sdk
- sdk-test:
requires:
- sdk
- template-node:
requires:
- sdk
- template-node-ts:
requires:
- sdk
- template-extension:
requires:
- sdk
- template-react-leo:
requires:
main-workflow:
jobs:
- check-fmt
- check-clippy
- sdk
#- test-website:
# requires:
# - sdk
- sdk-test:
requires:
- sdk
- template-node:
requires:
- sdk
- template-node-ts:
requires:
- sdk
- template-extension:
requires:
- sdk
- template-react-leo:
requires:
- sdk
#- test-website:
# requires:
# - sdk
8 changes: 4 additions & 4 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
coverage:
status:
project:
default:
threshold: 4%
status:
project:
default:
threshold: 4%
3 changes: 2 additions & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
## 👉 [Please follow one of these issue templates](https://github.com/AleoHQ/sdk/issues/new/choose) 👈

Note: to keep the backlog clean and actionable, issues may be immediately closed if they do not follow one of the above issue templates.
Note: to keep the backlog clean and actionable, issues may be immediately closed
if they do not follow one of the above issue templates.
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ labels: bug
<!--
What's the bug in the Aleo SDK that you found?
How serious is this bug and what is affected?

To report a security issue in the Aleo SDK, please email [email protected].
-->

Expand Down Expand Up @@ -43,6 +43,6 @@ labels: bug

## Your Environment

- <!-- Aleo SDK Version -->
- <!-- Rust Version -->
- <!-- Computer OS -->
- <!-- Aleo SDK Version -->
- <!-- Rust Version -->
- <!-- Computer OS -->
8 changes: 5 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
blank_issues_enabled: true
contact_links:
- name: ❓ Q&A Technical Support Channel
url: https://discord.gg/WYQNdbHzZR
about: For quick questions or technical troubleshooting, please ask them on our dedicated Discord channel.
- name: ❓ Q&A Technical Support Channel
url: https://discord.gg/WYQNdbHzZR
about:
For quick questions or technical troubleshooting, please ask them on
our dedicated Discord channel.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: 📚 Documentation
about: Report an issue related to documentation
title: "[Docs]"
labels: 'documentation'
labels: "documentation"
---

## 📚 Documentation
Expand Down
7 changes: 4 additions & 3 deletions .github/ISSUE_TEMPLATE/feature.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: 🚀 Feature
name: 🚀 Feature
about: Submit a new feature request
title: "[Feature]"
labels: feature
Expand All @@ -18,7 +18,7 @@ labels: feature
<!--
Why should this feature be implemented in the Aleo SDK?
How would this feature be used in the Aleo SDK?

Is this feature request related to a problem? If so, please describe.
Please link to any relevant issues or other PRs!
-->
Expand All @@ -33,4 +33,5 @@ labels: feature
How should this feature be implemented?
-->

**Are you willing to open a pull request?** (See [CONTRIBUTING](../../CONTRIBUTING.md))
**Are you willing to open a pull request?** (See
[CONTRIBUTING](../../CONTRIBUTING.md))
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/proposal.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: 💥 Proposal
about: Propose a non-trivial change to the Aleo SDK
title: "[Proposal]"
labels: 'proposal'
labels: "proposal"
---

## 💥 Proposal
Expand Down
Loading