Skip to content

Commit

Permalink
CircleCI (#1771)
Browse files Browse the repository at this point in the history
* Disable actions

* Test main in CircleCI

* Custom docker image with anvil and ipfs

* Separate workflow to populate cannon cache

* Instead of docker container use caching

* Better caching for testable contracts

* We still need to build testable to get typechain types

* Moar better cache keys

* Enable all contract tests

* Add more tests

* Set default timeout for mocha to 10s

* Migrate lint, check storage, size contracts

* Normalised mocha version

* Fix build:ts

* Use Node 16 for core-utils

* Adjust more

* Default node 16 again

* Avoid IPFS for tests

* Subgraph testing and simulate release checks

* Increase parallelism for perps again

* Cache SOLC for hardhat

* Temporarily use gh actions simulate-release until cannon has fixed the RPC proxy

* Disable GH actions on main branch too

* Inexact cannon cache
  • Loading branch information
noisekit authored Aug 18, 2023
1 parent 89b9898 commit 605824b
Show file tree
Hide file tree
Showing 21 changed files with 570 additions and 134 deletions.
473 changes: 472 additions & 1 deletion .circleci/config.yml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions .github/workflows/check-packages.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: "Validate yarn.lock and cache"

on:
pull_request: {}
# pull_request: {}
push:
branches:
- "main"
- "test"

jobs:
check:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Lint

on:
pull_request: {}
# pull_request: {}
push:
branches:
- "main"
- "test"

jobs:
lint:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test-with-coverage.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Coverage

on:
# pull_request: {}
push:
branches:
- "main"
- "test"

jobs:
coverage:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Test

on:
pull_request: {}
# pull_request: {}
push:
branches:
- "test"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Router.sol
typechain-types
lerna-debug.log
docs/
junit

# Yarn v3
.yarn/*
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@
"eslint": "8.29.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-no-only-tests": "3.1.0",
"mocha": "10.2.0",
"mocha-junit-reporter": "2.2.1",
"pre-commit": "1.2.2",
"prettier": "^2.8.8",
"prettier-plugin-solidity": "1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion protocol/synthetix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build": "yarn build:contracts",
"build:contracts": "hardhat storage:verify && hardhat cannon:build",
"generate-testable": "rm -rf contracts/generated && hardhat generate-testable",
"build-testable": "yarn generate-testable && hardhat cannon:build cannonfile.test.toml",
"build-testable": "hardhat cannon:build cannonfile.test.toml",
"check:storage": "git diff --exit-code storage.dump.sol",
"test": "hardhat test",
"coverage": "hardhat coverage --network hardhat",
Expand Down
2 changes: 1 addition & 1 deletion utils/core-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@types/prompts": "2.0.14",
"ethers": "^5.7.2",
"hardhat": "2.15.0",
"mocha": "9.1.1",
"mocha": "10.2.0",
"multimatch": "6.0.0",
"nyc": "15.1.0",
"sinon": "11.1.2",
Expand Down
Loading

0 comments on commit 605824b

Please sign in to comment.