Skip to content

Commit

Permalink
Develop (#6)
Browse files Browse the repository at this point in the history
* Ag 17 commitlint fix (#1)

* fix(@script): AG-17 changed script logic

changed script login the commit script

* fix(@script): AG-17 changed script

modified some logic in the script folder

* docs(@agora): modified readme

modified readme

* feat(@agora): AG-35 basic workflow (#3)

* feat(@agora): AG-35 basic workflow

basic GitHub Actions workflow implementation

* feat(@agora): AG-35 duplicated code

inserted duplicated code check in ci-cd

* docs(@agora): AG-35 updloaded image (#5)

uploaded image for functional analysis
  • Loading branch information
g3k0 authored Mar 26, 2024
1 parent 62b3416 commit f6be396
Show file tree
Hide file tree
Showing 8 changed files with 672 additions and 5 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI

on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop

jobs:
codeQuality:

runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Use Node.js 20.x
uses: actions/setup-node@v2
with:
node-version: 20.x

- name: Install dependencies
run: npm install

- name: Run linter
run: npm run lint

- name: Run duplications check
run: npm run duplicated

- name: Run unit tests
run: npm run test-contracts
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ node_modules
# solidity-coverage files
/coverage
/coverage.json

# reports folder
report
19 changes: 19 additions & 0 deletions .jscpd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"path": ["./"],
"silent": false,
"format": ["console"],
"ignore": [
"**/*.min.js",
"**/*.map",
"**/*.spec.js",
"**/*.test.js",
"**/node_modules"
],
"ignoreCase": true,
"threshold": 10,
"reporters": ["console"],
"languages": ["javascript", "typescript"],
"gitignore": true,
"failOnDuplication": false
}

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ To setup the application follow these steps:
* `REPORT_GAS` enable or disable the gas report on smart contracts unit tests executions

## How to commit

1. `git add <files list>`
2. `npm run commit`

Expand Down
Binary file added docs/assets/agora-main-flow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f6be396

Please sign in to comment.