Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
2b74b986
Commit
2b74b986
authored
Jan 06, 2022
by
Noah Litvin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: Adds depcheck to CI workflow
parent
89eab8f7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
83 additions
and
0 deletions
+83
-0
ts-packages.yml
.github/workflows/ts-packages.yml
+60
-0
.depcheckrc
integration-tests/.depcheckrc
+8
-0
.depcheckrc
packages/contracts/.depcheckrc
+11
-0
.depcheckrc
packages/sdk/.depcheckrc
+4
-0
No files found.
.github/workflows/ts-packages.yml
View file @
2b74b986
...
...
@@ -138,6 +138,66 @@ jobs:
verbose
:
true
flags
:
sdk
depcheck
:
name
:
Check for unused dependencies
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Fetch history
run
:
git fetch
-
name
:
Setup node
uses
:
actions/setup-node@v1
with
:
node-version
:
'
16.x'
-
name
:
Get yarn cache directory path
id
:
yarn-cache-dir-path
run
:
echo "::set-output name=dir::$(yarn cache dir)"
-
uses
:
actions/cache@v2
id
:
yarn-cache
with
:
path
:
${{ steps.yarn-cache-dir-path.outputs.dir }}
key
:
${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys
:
|
${{ runner.os }}-yarn-
-
name
:
Install Dependencies
# only install dependencies if there was a change in the deps
# if: steps.yarn-cache.outputs.cache-hit != 'true'
run
:
yarn install
-
name
:
Check packages/batch-submitter
working-directory
:
./packages/batch-submitter
run
:
npx depcheck
-
name
:
Check packages/contracts
working-directory
:
./packages/contracts
run
:
npx depcheck
-
name
:
Check packages/core-utils
working-directory
:
./packages/core-utils
run
:
npx depcheck
-
name
:
Check packages/data-transport-layer
working-directory
:
./packages/data-transport-layer
run
:
npx depcheck
-
name
:
Check packages/message-relayer
working-directory
:
./packages/message-relayer
run
:
npx depcheck
-
name
:
Check packages/sdk
working-directory
:
./packages/sdk
run
:
npx depcheck
-
name
:
Check integration-tests
working-directory
:
./integration-tests
run
:
npx depcheck
lint
:
name
:
Linting
runs-on
:
ubuntu-latest
...
...
integration-tests/.depcheckrc
0 → 100644
View file @
2b74b986
ignores: [
"@openzeppelin/contracts",
"@types/mocha",
"@types/rimraf",
"@uniswap/v3-core",
"mocha",
"typescript",
]
\ No newline at end of file
packages/contracts/.depcheckrc
0 → 100644
View file @
2b74b986
ignores: [
"@codechecks/client",
"@ethersproject/transactions",
"@openzeppelin/contracts",
"@openzeppelin/contracts-upgradeable",
"@typechain/ethers-v5",
"prettier-plugin-solidity",
"solhint-plugin-prettier",
"ts-generator",
"yargs",
]
\ No newline at end of file
packages/sdk/.depcheckrc
0 → 100644
View file @
2b74b986
ignores: [
"@eth-optimism/core-utils",
"ts-mocha",
]
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment