-
Notifications
You must be signed in to change notification settings - Fork 238
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
Showing
35 changed files
with
1,413 additions
and
105 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
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,38 @@ | ||
name: Reusable Workflow | Test Hardhat-Deployer | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
test-hardhat-deployer: | ||
name: Test Hardhat-Deployer | ||
|
||
runs-on: ubuntu-latest | ||
|
||
env: | ||
contracts-working-directory: ./packages/ethereum-contracts | ||
hardhat-working-directory: ./packages/hardhat-deployer | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js 16.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16.x | ||
|
||
- name: "Install contract dependencies" | ||
run: yarn install | ||
working-directory: ${{ env.contracts-working-directory }} | ||
|
||
- name: "Build contracts" | ||
run: yarn build:contracts | ||
working-directory: ${{ env.contracts-working-directory }} | ||
|
||
- name: "Install dependencies" | ||
run: yarn | ||
working-directory: ${{ env.hardhat-working-directory }} | ||
|
||
- name: "Run test suite" | ||
run: yarn test | ||
working-directory: ${{ env.hardhat-working-directory }} |
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
60 changes: 60 additions & 0 deletions
60
.github/workflows/cd.hardhat-deployer-stable.create-release-drafts.yml
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,60 @@ | ||
name: CD | Create Hardhat-Deployer Stable Release Draft | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }} | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
push: | ||
branches: | ||
- "release-hardhat-deployer-stable" | ||
paths: | ||
- "packages/hardhat-deployer/**" | ||
- ".github/workflows/cd.hardhat-deployer-stable.create-release-drafts.yml" | ||
|
||
jobs: | ||
create-release-draft: | ||
name: Create Release Draft | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js 16.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16.x | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- name: Check package versions | ||
id: check_versions | ||
run: | | ||
# hardhat-deployer | ||
PUBLISHED_HARDHAT_DEPLOYER_VERSION=`npm show @superfluid-finance/hardhat-deployer@latest version` | ||
NEW_HARDHAT_DEPLOYER_VERSION=`jq -r .version packages/hardhat-deployer/package.json` | ||
if [ "$PUBLISHED_HARDHAT_DEPLOYER_VERSION" != "$NEW_HARDHAT_DEPLOYER_VERSION" ];then | ||
echo "PUBLISHED_HARDHAT_DEPLOYER_VERSION=1" >> $GITHUB_ENV | ||
echo "hardhat-deployer changed: $PUBLISHED_HARDHAT_DEPLOYER_VERSION -> $NEW_HARDHAT_DEPLOYER_VERSION" | ||
else | ||
echo "hardhat-deployer unchanged: $PUBLISHED_HARDHAT_DEPLOYER_VERSION" | ||
fi | ||
echo "::set-output name=NEW_HARDHAT_DEPLOYER_VERSION::$NEW_HARDHAT_DEPLOYER_VERSION" | ||
- name: Create hardhat-deployer stable release draft | ||
if: env.PUBLISHED_HARDHAT_DEPLOYER_VERSION == 1 | ||
id: create_release_hardhat_deployer | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: hardht-deployer@v${{ steps.check_versions.outputs.NEW_HARDHAT_DEPLOYER_VERSION }} | ||
release_name: hardhat-deployer@v${{ steps.check_versions.outputs.NEW_HARDHAT_DEPLOYER_VERSION }} | ||
body: | | ||
Changes in this hardhat-deployer stable release | ||
## Changed | ||
## Added | ||
## Fixes | ||
## Breaking | ||
draft: true |
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
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
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.