-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a761751
commit e7eae37
Showing
21 changed files
with
1,736 additions
and
404 deletions.
There are no files selected for viewing
This file was deleted.
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,37 @@ | ||
name: Run tests | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branch: ethers-v5 | ||
types: [ opened, reopened, synchronize ] | ||
|
||
permissions: | ||
contents: read # for checkout | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "lts/*" | ||
- name: Install dependencies | ||
run: yarn install | ||
- name: Run local-setup | ||
run: | | ||
git clone https://github.com/matter-labs/local-setup.git | ||
pushd local-setup | ||
docker-compose up -d | ||
popd | ||
- name: Wait for local-setup to be ready | ||
run: yarn test:wait | ||
- name: Prepare environment | ||
run: yarn test:prepare | ||
- name: Run tests | ||
run: yarn test |
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,47 @@ | ||
name: Validate | ||
on: | ||
pull_request: | ||
types: [ opened, reopened, synchronize ] | ||
|
||
permissions: | ||
contents: read # for checkout | ||
|
||
jobs: | ||
lint: | ||
name: Check code format | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "lts/*" | ||
- name: Install dependencies | ||
run: yarn install | ||
- name: Prepare environment | ||
run: yarn lint:check | ||
commits: | ||
name: Check commits | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "lts/*" | ||
- name: Install dependencies | ||
run: npm install -g @commitlint/cli @commitlint/config-conventional | ||
- name: Configure | ||
run: | | ||
echo 'module.exports = {"extends": ["@commitlint/config-conventional"]}' > commitlint.config.js | ||
- name: Validate | ||
run: | | ||
git fetch | ||
npx commitlint \ | ||
--from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} \ | ||
--to ${{ github.event.pull_request.head.sha }} \ | ||
--verbose |
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,4 +1,6 @@ | ||
build | ||
node_modules | ||
tests/token.json | ||
coverage | ||
|
||
.idea |
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,8 @@ | ||
{ | ||
"report-dir": "./coverage", | ||
"reporter": ["lcov", "text"], | ||
"clean": true, | ||
"all": true, | ||
"include": ["src/*"], | ||
"exclude": ["tests/*", "typechain/*"] | ||
} |
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 was deleted.
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
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
Oops, something went wrong.