-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from TogetherCrew/ci
Ci
- Loading branch information
Showing
18 changed files
with
7,286 additions
and
4,036 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
|
||
[*.{js,json,yml}] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/.yarn/** linguist-vendored | ||
/.yarn/releases/* binary | ||
/.yarn/plugins/**/* binary | ||
/.pnp.* binary linguist-generated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Continuous Integration | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Install Dependencies | ||
run: yarn install | ||
|
||
- name: Clean | ||
run: yarn clean | ||
|
||
- name: Compile | ||
run: yarn compile | ||
|
||
- name: Check | ||
run: yarn check | ||
|
||
- name: Test | ||
run: yarn test | ||
|
||
- name: CI | ||
run: yarn ci | ||
|
||
- name: Coverage | ||
run: yarn coverage | ||
|
||
analyze: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
security-events: write | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run Slither | ||
uses: crytic/[email protected] | ||
id: slither | ||
with: | ||
node-version: 20 | ||
sarif: results.sarif | ||
fail-on: none | ||
|
||
- name: Upload SARIF file | ||
uses: github/codeql-action/upload-sarif@v3 | ||
with: | ||
sarif_file: ${{ steps.slither.outputs.sarif }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
yarn clean | ||
yarn compile | ||
yarn check | ||
yarn test | ||
yarn ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "solhint:default" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"[typescript]": { | ||
"editor.defaultFormatter": "biomejs.biome" | ||
} | ||
} |
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
nodeLinker: node-modules | ||
|
||
yarnPath: .yarn/releases/yarn-4.3.1.cjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json", | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true | ||
} | ||
}, | ||
"files": { | ||
"ignore": [ | ||
"./typechain-types", | ||
"./artifacts", | ||
"./cache", | ||
"./node_modules", | ||
"./coverage" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
import type { HardhatUserConfig } from "hardhat/config"; | ||
import "@nomicfoundation/hardhat-toolbox-viem"; | ||
import "@nomiclabs/hardhat-solhint"; | ||
|
||
const config: HardhatUserConfig = { | ||
solidity: "0.8.26", | ||
solidity: "0.8.24", | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,34 @@ | ||
{ | ||
"name": "contracts", | ||
"version": "1.0.0", | ||
"main": "index.js", | ||
"repository": "https://github.com/TogetherCrew/contracts.git", | ||
"author": "Cyrille Derche <[email protected]>", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@ethereum-attestation-service/eas-contracts": "^1.7.1", | ||
"@nomicfoundation/hardhat-ignition": "^0.15.0", | ||
"@nomicfoundation/hardhat-ignition-viem": "^0.15.0", | ||
"@nomicfoundation/hardhat-network-helpers": "^1.0.0", | ||
"@nomicfoundation/hardhat-toolbox-viem": "^3.0.0", | ||
"@nomicfoundation/hardhat-verify": "^2.0.0", | ||
"@nomicfoundation/hardhat-viem": "^2.0.0", | ||
"@types/chai": "^4.2.0", | ||
"@types/chai-as-promised": "^7.1.6", | ||
"@types/mocha": ">=9.1.0", | ||
"@types/node": ">=18.0.0", | ||
"chai": "^4.2.0", | ||
"hardhat": "^2.22.6", | ||
"hardhat-gas-reporter": "^1.0.8", | ||
"solidity-coverage": "^0.8.0", | ||
"ts-node": ">=8.0.0", | ||
"typescript": "~5.0.4", | ||
"viem": "^2.7.6" | ||
} | ||
"name": "contracts", | ||
"packageManager": "[email protected]", | ||
"devDependencies": { | ||
"@biomejs/biome": "1.8.3", | ||
"@nomicfoundation/hardhat-ignition": "^0.15.0", | ||
"@nomicfoundation/hardhat-ignition-viem": "^0.15.0", | ||
"@nomicfoundation/hardhat-network-helpers": "^1.0.0", | ||
"@nomicfoundation/hardhat-toolbox-viem": "^3.0.0", | ||
"@nomicfoundation/hardhat-verify": "^2.0.0", | ||
"@nomicfoundation/hardhat-viem": "^2.0.0", | ||
"@nomiclabs/hardhat-solhint": "^3.1.0", | ||
"@types/chai": "^4.2.0", | ||
"@types/chai-as-promised": "^7.1.6", | ||
"@types/mocha": ">=9.1.0", | ||
"@types/node": ">=18.0.0", | ||
"chai": "^4.2.0", | ||
"hardhat": "^2.14.0", | ||
"hardhat-gas-reporter": "^1.0.8", | ||
"solidity-coverage": "^0.8.0", | ||
"ts-node": ">=8.0.0", | ||
"typescript": "~5.0.4", | ||
"viem": "^2.7.6" | ||
}, | ||
"scripts": { | ||
"clean": "npx hardhat clean", | ||
"compile": "npx hardhat compile", | ||
"check": "npx hardhat check", | ||
"test": "npx hardhat test", | ||
"coverage": "SOLIDITY_COVERAGE=true npx hardhat coverage", | ||
"ci": "npx biome ci", | ||
"format": "npx biome check --write" | ||
} | ||
} |
Oops, something went wrong.