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

Develop #27

Merged
merged 23 commits into from
Apr 11, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
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
  • Loading branch information
g3k0 authored Mar 25, 2024
commit 92602874efb52db7fe1a37fa9bec78e96e1db8f7
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
@@ -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
}

Loading
Loading