Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 94b413e

Browse files
Features (#1)
2 parents 6074516 + c2c3fe8 commit 94b413e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+6374
-1965
lines changed

.github/workflows/ci.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: CI Workflow
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
services:
16+
docker:
17+
image: docker:19.03.12
18+
options: --privileged
19+
ports:
20+
- 2375:2375
21+
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v2
25+
26+
- name: Set up Docker Buildx
27+
uses: docker/setup-buildx-action@v1
28+
29+
- name: Set up QEMU
30+
uses: docker/setup-qemu-action@v1
31+
32+
- name: Log in to GitHub Container Registry
33+
uses: docker/login-action@v1
34+
with:
35+
registry: ghcr.io
36+
username: ${{ github.actor }}
37+
password: ${{ secrets.GITHUB_TOKEN }}
38+
39+
- name: Build and push Docker image
40+
uses: docker/build-push-action@v2
41+
with:
42+
context: .
43+
file: .devcontainer/Dockerfile
44+
push: true
45+
tags: ghcr.io/${{ github.repository }}:latest
46+
47+
- name: Set up Node.js
48+
uses: actions/setup-node@v2
49+
with:
50+
node-version: 'lts/*'
51+
52+
- name: Install dependencies
53+
run: npm install
54+
55+
- name: Run ESLint
56+
run: npm run lint
57+
58+
- name: Run unit tests
59+
run: npm test
60+
61+
- name: Run vulnerability checks
62+
run: python anya/vulnerability_checker.py
63+
64+
- name: Analyze code with ML
65+
run: python anya/ml_code_analyzer.py
66+
67+
- name: Commit and push changes
68+
run: |
69+
git config --global user.name 'github-actions[bot]'
70+
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
71+
git add .
72+
git commit -m "Automated code check, verification, and tests"
73+
git push origin main
74+
env:
75+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 105 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -1,107 +1,126 @@
11
# Rust-specific ignores
2-
/target
3-
**/*.rs.bk
4-
Cargo.lock
5-
6-
# Ignore all files and directories in the project root
7-
/*
8-
9-
# But don't ignore these specific directories and files
10-
!/src/
11-
!/Cargo.toml
12-
!/README.md
13-
!/LICENSE
14-
15-
# Ignore common build and IDE-specific files
16-
*.class # Java class files
17-
*.log # Log files
18-
*.ctxt # BlueJ files
19-
.mtj.tmp/ # Mobile Tools for Java (J2ME)
20-
*.jar # JAR files
21-
*.war # WAR files
22-
*.nar # NAR files
23-
*.ear # EAR files
24-
*.zip # ZIP files
25-
*.tar.gz # Compressed tar files
26-
*.rar # RAR files
27-
28-
# Virtual machine crash logs
29-
hs_err_pid*
30-
replay_pid*
31-
32-
# IDE-specific files
33-
.idea/ # IntelliJ IDEA
34-
*.iml # IntelliJ IDEA module files
35-
.vscode/ # Visual Studio Code
36-
*.swp # Vim swap files
37-
*~ # Temporary files
38-
39-
# Build directories
40-
target/ # Maven build directory
41-
build/ # Gradle build directory
42-
43-
# Dependency directories
44-
node_modules/ # Node.js dependencies
45-
jspm_packages/ # JSPM packages
46-
47-
# Logs
48-
logs/ # Log directory
49-
*.log # Log files
50-
npm-debug.log* # npm debug logs
51-
yarn-debug.log* # Yarn debug logs
52-
yarn-error.log* # Yarn error logs
53-
54-
# OS generated files
55-
.DS_Store # macOS
56-
.DS_Store? # macOS
57-
._* # macOS
58-
.Spotlight-V100 # macOS
59-
.Trashes # macOS
60-
ehthumbs.db # Windows
61-
Thumbs.db # Windows
62-
63-
# Temporary files
64-
*.tmp # Temporary files
65-
*.bak # Backup files
66-
*.swp # Vim swap files
67-
*~.nib # Interface Builder temporary files
68-
69-
# Rust
702
/target/
713
**/*.rs.bk
724
Cargo.lock
735

74-
# IDE
6+
# Build artifacts
7+
/dist/
8+
/build/
9+
10+
# IDE/editor specific files
7511
.vscode/
7612
.idea/
13+
*.swp
14+
*.swo
7715
*.iml
7816

79-
# OS
17+
# System-specific files
8018
.DS_Store
19+
.DS_Store?
20+
._*
21+
.Spotlight-V100
22+
.Trashes
23+
ehthumbs.db
8124
Thumbs.db
8225

83-
# Build
84-
/build/
85-
86-
# Logs
87-
*.log
88-
89-
# Dependencies
90-
/node_modules/
91-
92-
# Environment
26+
# Sensitive information
27+
*.key
28+
*.pem
29+
wallet_data.json
9330
.env
9431
.env.local
9532
.env.*.local
9633

97-
# Testing
98-
/coverage/
99-
100-
# Documentation
101-
/docs/
34+
# Log files
35+
/logs/
36+
*.log
37+
npm-debug.log*
38+
yarn-debug.log*
39+
yarn-error.log*
40+
41+
# Network-specific
42+
.stacks-chain/
43+
.stacks-testnet/
44+
.web5/
45+
.dlc/
46+
.lnd/
47+
*.macaroon
48+
.bitcoin/
49+
.libp2p/
50+
51+
# Compiled files
52+
*.rlib
53+
*.so
54+
*.dylib
55+
*.dll
56+
*.class
57+
*.jar
58+
*.war
59+
*.nar
60+
*.ear
61+
62+
# Database files
63+
*.db
64+
*.sqlite
10265

10366
# Temporary files
10467
*.tmp
10568
*.bak
69+
*~
10670
*.swp
107-
*~.nib
71+
.mtj.tmp/
72+
73+
# Dependency directories
74+
/node_modules/
75+
/jspm_packages/
76+
77+
# Anya-specific
78+
/anya-core/target/
79+
/anya-cli/target/
80+
/anya-gui/target/
81+
/anya-node/target/
82+
/anya-wallet/target/
83+
/.anya-temp/
84+
/anya-logs/
85+
/anya-data/
86+
/anya-backups/
87+
88+
# Documentation
89+
/docs/_build/
90+
91+
# Test coverage
92+
/coverage/
93+
94+
# Benchmark results
95+
/benchmarks/results/
96+
97+
# Generated files
98+
**/*.pb.rs
99+
*.generated.*
100+
101+
# Local configuration files
102+
config.local.toml
103+
104+
# Debug and profiling files
105+
*.debug
106+
*.prof
107+
108+
# Specific to Anya Core
109+
/data/
110+
/config/local.toml
111+
112+
# Tracked code snippets
113+
/tracked_snippets/
114+
115+
# But don't ignore these specific files
116+
!README.md
117+
!LICENSE
118+
!Cargo.toml
119+
120+
# Ignore all files in the root directory
121+
/*
122+
# But don't ignore the src directory
123+
!/src/
124+
125+
# anya-core-config.json
126+

.vscode/extensions.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

.vscode/launch.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,24 @@
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
66
"configurations": [
7+
78
{
89
"type": "lldb",
910
"request": "launch",
1011
"name": "Debug Anya Core",
11-
"program": "${workspaceFolder}/target/debug/anya-core",
12+
"cargo": {
13+
"args": [
14+
"build",
15+
"--bin=anya-core",
16+
"--package=anya-core"
17+
],
18+
"filter": {
19+
"name": "anya-core",
20+
"kind": "bin"
21+
}
22+
},
1223
"args": [],
1324
"cwd": "${workspaceFolder}",
14-
"preLaunchTask": "cargo build",
1525
"env": {
1626
"RUST_BACKTRACE": "1"
1727
}

.vscode/settings.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"svn.ignoreMissingSvnWarning": true
2+
"svn.ignoreMissingSvnWarning": true,
3+
"git.allowForcePush": true,
4+
"git.allowNoVerifyCommit": false,
5+
"git.alwaysShowStagedChangesResourceGroup": true
36
}

CHANGELOG.md

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)