Skip to content

Commit

Permalink
added contract
Browse files Browse the repository at this point in the history
  • Loading branch information
Megha-Dev-19 committed Jul 1, 2024
1 parent 4b38887 commit f94941c
Show file tree
Hide file tree
Showing 57 changed files with 14,824 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"image": "ghcr.io/near/near-devcontainer:latest",
"customizations": {
"vscode": {
"extensions": [
"dtsvet.vscode-wasm",
"rust-lang.rust-analyzer",
"github.vscode-github-actions"
]
}
},
"postCreateCommand": "./.devcontainer/post-create.sh"
}
6 changes: 6 additions & 0 deletions .devcontainer/post-create.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

(cd discussions && cargo near build)
(cd community && cargo near build)
(cd community-factory && cargo near build)
cargo near build
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
res/near_ideas.wasm binary
26 changes: 26 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
rununittest:
name: Unit tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v1
- name: Install cargo-near
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/latest/download/cargo-near-installer.sh | sh
- name: Build discussions contract
run: cd discussions && cargo near build
- name: Build community contract
run: cd community && cargo near build
- name: Build community factory contract
run: cd community-factory && cargo near build
- name: Build devhub contract
run: cargo near build
- name: Unit tests
run: cargo test
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.idea
neardev/
target/
res/*.wasm
.DS_Store
Loading

0 comments on commit f94941c

Please sign in to comment.