Skip to content

Commit

Permalink
Merge pull request #218 from inkdevhub/ink-devhub-1
Browse files Browse the repository at this point in the history
Astar Treasury Proposal Roadmap - ink!DevHub 1.0
  • Loading branch information
ipapandinas authored Mar 25, 2024
2 parents 9a9d290 + 0e489af commit e8aec83
Show file tree
Hide file tree
Showing 72 changed files with 7,197 additions and 2,793 deletions.
6 changes: 4 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"name": "swanky-env",
"image": "ghcr.io/swankyhub/swanky-cli/swanky-base:swanky3.1.0-beta.0_v2.1.0",

"image": "ghcr.io/inkdevhub/swanky-cli/swanky-base:swanky3.1.0-beta.0_v2.1.1",
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2.8.0": {}
},
// Mount the workspace volume
"mounts": ["source=${localWorkspaceFolder},target=/workspaces,type=bind,consistency=cached"],
"workspaceFolder": "/workspaces",
Expand Down
27 changes: 0 additions & 27 deletions .github/ISSUE_TEMPLATE/backlog-ticket.md

This file was deleted.

67 changes: 67 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Bug Report
description: Create a report to help us improve
title: "[BUG]: "
labels: ["bug"]
projects: ["swanky-cli"]

body:
- type: textarea
id: what-happened
attributes:
label: What happened?
description: Tell us what happened. In particular, tell us how and why you are using this project, and describe the bug that you encountered. Please note that we are not able to support all conceivable use cases, but the more information you are able to provide the more equipped we will be to help.
placeholder: Write your bug report here
validations:
required: true
- type: textarea
id: steps-to-reproduce
attributes:
label: Steps to reproduce
description: Replace the example steps below with actual steps to reproduce the bug you're reporting.
value: |
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
validations:
required: true
- type: textarea
id: expected-behavior
attributes:
label: Expected behavior
description: Tell us what should happen
placeholder: Write your expected behavior here.
validations:
required: true
- type: textarea
id: actual-behavior
attributes:
label: Actual behavior
description: Tell us what happens instead
placeholder: Write your actual behavior here.
validations:
required: true
- type: textarea
id: environment
attributes:
label: Environment
description: Describe the environment in which you encountered this bug. Use the list below as a starting point and add additional information if you think it's relevant.
value: |
- Operating System
- Project version/tag: (run 'swanky version')
- Rust version (run `rustup show`)
- Node version (run `node --version`)
validations:
required: true
- type: textarea
id: logs
attributes:
label: Logs, Errors, Screenshots
description: Please provide the text of any logs or errors that you experienced; if applicable, provide screenshots to help illustrate the problem.
placeholder: |
Paste your logs here
- type: textarea
id: additional-info
attributes:
label: Additional information
description: Add any other context about the problem here.
42 changes: 0 additions & 42 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
43 changes: 43 additions & 0 deletions .github/ISSUE_TEMPLATE/new-feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Feature request
description: New feature/ticket for the project
labels: ["enhancement"]
projects: ["swanky-cli"]

body:
- type: textarea
id: overview
attributes:
label: Overview (What and Why)
description: Write description of what the feature should be, why
validations:
required: true

- type: textarea
id: how
attributes:
label: How to do it?
description: Describe what needs to be done.
placeholder: |
- Task 1
- Task 2
validations:
required: true

- type: textarea
id: definition-of-done
attributes:
label: Definition of Done
description: Write definition of done, how to verify
placeholder: |
- Unit test cases
- Docs updated
- PR approved and merged to master
- etc.
validations:
required: true

- type: textarea
id: open-issues-and-blockers
attributes:
label: Open Issues and Blockers
description: Dependencies issue or PR or some other blocker.
23 changes: 19 additions & 4 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
with:
node-version: ${{ env.NODE_VER }}

- name: yarn test
- name: Check test
run: yarn && yarn test

lint-check:
Expand All @@ -60,7 +60,7 @@ jobs:
with:
node-version: ${{ env.NODE_VER }}

- name: yarn lint
- name: Check lint
run: yarn && yarn lint

build-check:
Expand All @@ -75,5 +75,20 @@ jobs:
with:
node-version: ${{ env.NODE_VER }}

- name: yarn build
run: yarn && yarn build
- name: Check build
run: yarn && yarn build

format-check:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VER }}

- name: Check formatting
run: yarn && yarn format
35 changes: 35 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)
# and commit this file to your remote git repository to share the goodness with others.

# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart

ports:
- name: Swanky Node
port: 9944

vscode:
extensions:
- rust-lang.rust-analyzer

tasks:
- init: |
# Add wasm target
rustup target add wasm32-unknown-unknown
# Add necessary components
rustup component add rust-src
# Install or update cargo packages
cargo install --force --locked cargo-contract
cargo install cargo-dylint dylint-link
yarn install
yarn build
command: |
echo "Swanky Dev Environment ready!"
echo "Use Swanky directly by running \"./bin/run.js COMMAND\""
echo "For example:"
echo "./bin/run.js init temp_project"
echo "cd temp_project"
echo "../bin/run.js contract compile flipper"
Loading

0 comments on commit e8aec83

Please sign in to comment.