Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/foundry-gas-report/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Compares gas on default branch against the pr
runs:
using: "composite"
steps:
- uses: bgd-labs/action-foundry-gas-diff@main
- uses: aave-dao/action-foundry-gas-diff@main
id: gas

- name: Prepare comment
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/foundry-lcov-report/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ runs:
path: lcov
check_artifacts: true

- uses: bgd-labs/action-foundry-lcov@main
- uses: aave-dao/action-foundry-lcov@main
id: lcov
with:
# The path to the first contract to compare
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/foundry-size/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ runs:
path: /tmp/sizes.json

- name: Compare reports
uses: bgd-labs/action-forge-sizes@main
uses: aave-dao/action-forge-sizes@main
if: always() && github.event_name == 'pull_request'
id: sizes
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/setup-node/action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## should eventually move to bgd-labs/github-workflows
## should eventually move to aave-dao/github-workflows

name: "Setup Node'ish environment"
description: "Sets up Node/Bun and installs the dependencies"
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/_comment-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,3 @@ on:
jobs:
test:
uses: ./.github/workflows/comment.yml
secrets:
READ_ONLY_PAT: ${{ secrets.READ_ONLY_PAT }}
2 changes: 1 addition & 1 deletion .github/workflows/_test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
with:
submodules: recursive

- uses: bgd-labs/action-rpc-env@main
- uses: aave-dao/action-rpc-env@main
with:
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}

Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ name: comment-pr-results

on:
workflow_call:
secrets:
READ_ONLY_PAT:
required: false
description: "If supplied PAT will be used for git checkout"

jobs:
artifacts:
Expand All @@ -24,7 +20,7 @@ jobs:
uses: dawidd6/action-download-artifact@72aaadce3bc708349fc665eee3785cbb1b6e51d0 # v3.1.1
with:
run_id: ${{ github.event.workflow_run.id }}
github_token: ${{ secrets.READ_ONLY_PAT || github.token }}
github_token: ${{ github.token }}
name: content*
name_is_regexp: true
path: /tmp/content
Expand All @@ -50,7 +46,7 @@ jobs:
uses: dawidd6/action-download-artifact@72aaadce3bc708349fc665eee3785cbb1b6e51d0 # v3.1.1
with:
run_id: ${{ github.event.workflow_run.id }}
github_token: ${{ secrets.READ_ONLY_PAT || github.token }}
github_token: ${{ github.token }}
name: content*
name_is_regexp: true
path: /tmp/content
Expand Down Expand Up @@ -83,6 +79,6 @@ jobs:
uses: peter-evans/commit-comment@v3
if: ${{ needs.artifacts.outputs.pr_number == null }}
with:
token: ${{ secrets.READ_ONLY_PAT || github.token }}
token: ${{ github.token }}
sha: ${{ github.event.workflow_run.head_sha }}
body-path: /tmp/comment
4 changes: 2 additions & 2 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:

- name: setup config
run: |
git config --global user.email "gitbot@bgdlabs.com"
git config --global user.email "gitbot@aave.com"
git config --global user.name "Release bot :robot:"

- uses: bgd-labs/github-workflows/.github/actions/setup-node@main
- uses: aave-dao/github-workflows/.github/actions/setup-node@main

- name: install
run: npm i -g standard-version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/foundry-lint-prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: bgd-labs/github-workflows/.github/actions/setup-node@main
- uses: aave-dao/github-workflows/.github/actions/setup-node@main

- id: lint
run: npm run lint
2 changes: 1 addition & 1 deletion .github/workflows/foundry-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v4

- name: Run Foundry setup
uses: bgd-labs/github-workflows/.github/actions/foundry-setup@main
uses: aave-dao/github-workflows/.github/actions/foundry-setup@main

- name: lint
run: forge fmt --check
15 changes: 6 additions & 9 deletions .github/workflows/foundry-test-zk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ on:
secrets:
ALCHEMY_API_KEY:
required: false
READ_ONLY_PAT:
required: false
description: "If supplied PAT will be used for git checkout(relevant for private repos)"
QUICKNODE_TOKEN:
required: false
QUICKNODE_ENDPOINT_NAME:
Expand All @@ -26,31 +23,31 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.READ_ONLY_PAT || github.token }}
token: ${{ github.token }}

- uses: bgd-labs/action-rpc-env@5191193b0de7443bda94b6f42092c83e32464adc
- uses: aave-dao/action-rpc-env@5191193b0de7443bda94b6f42092c83e32464adc
with:
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
QUICKNODE_TOKEN: ${{ secrets.QUICKNODE_TOKEN }}
QUICKNODE_ENDPOINT_NAME: ${{ secrets.QUICKNODE_ENDPOINT_NAME }}

- uses: bgd-labs/github-workflows/.github/actions/setup-node@main
- uses: aave-dao/github-workflows/.github/actions/setup-node@main

- name: Run Foundry setup
uses: bgd-labs/github-workflows/.github/actions/foundry-setup@main
uses: aave-dao/github-workflows/.github/actions/foundry-setup@main
with:
ZKSYNC: true

### Run tests ###
- name: Run ZK tests
id: zktest
uses: bgd-labs/github-workflows/.github/actions/foundry-test@main
uses: aave-dao/github-workflows/.github/actions/foundry-test@main
with:
MODE: ${{ inputs.mode }}
ZKSYNC: true

- name: Upload & Trigger Comment artifact
if: always()
uses: bgd-labs/github-workflows/.github/actions/comment-artifact@main
uses: aave-dao/github-workflows/.github/actions/comment-artifact@main
with:
nameSuffix: "zk"
21 changes: 9 additions & 12 deletions .github/workflows/foundry-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ on:
secrets:
ALCHEMY_API_KEY:
required: false
READ_ONLY_PAT:
required: false
description: "If supplied PAT will be used for git checkout(relevant for private repos)"
QUICKNODE_TOKEN:
required: false
QUICKNODE_ENDPOINT_NAME:
Expand All @@ -35,7 +32,7 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.READ_ONLY_PAT || github.token }}
token: ${{ github.token }}

- name: Increase swapfile
run: |
Expand All @@ -46,42 +43,42 @@ jobs:
sudo swapon /swapfile
sudo swapon --show

- uses: bgd-labs/action-rpc-env@5191193b0de7443bda94b6f42092c83e32464adc
- uses: aave-dao/action-rpc-env@5191193b0de7443bda94b6f42092c83e32464adc
with:
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
QUICKNODE_TOKEN: ${{ secrets.QUICKNODE_TOKEN }}
QUICKNODE_ENDPOINT_NAME: ${{ secrets.QUICKNODE_ENDPOINT_NAME }}

- uses: bgd-labs/github-workflows/.github/actions/setup-node@main
- uses: aave-dao/github-workflows/.github/actions/setup-node@main

- name: Run Foundry setup
uses: bgd-labs/github-workflows/.github/actions/foundry-setup@main
uses: aave-dao/github-workflows/.github/actions/foundry-setup@main

### Ensure contract size is not exceeded ###
- name: Run Forge size
if: ${{ inputs.compareSize }}
uses: bgd-labs/github-workflows/.github/actions/foundry-size@main
uses: aave-dao/github-workflows/.github/actions/foundry-size@main
continue-on-error: true

- name: Run Gas report
if: ${{ inputs.compareGas }}
uses: bgd-labs/github-workflows/.github/actions/foundry-gas-report@main
uses: aave-dao/github-workflows/.github/actions/foundry-gas-report@main
continue-on-error: true

### Run tests ###
- name: Run Forge tests
id: test
uses: bgd-labs/github-workflows/.github/actions/foundry-test@main
uses: aave-dao/github-workflows/.github/actions/foundry-test@main
with:
MODE: ${{ inputs.mode }}

### Extended reports ###
- name: Run Lcov report
if: ${{ inputs.compareLcov }}
uses: bgd-labs/github-workflows/.github/actions/foundry-lcov-report@main
uses: aave-dao/github-workflows/.github/actions/foundry-lcov-report@main

- name: Upload & Trigger Comment artifact
if: always()
uses: bgd-labs/github-workflows/.github/actions/comment-artifact@main
uses: aave-dao/github-workflows/.github/actions/comment-artifact@main
with:
nameSuffix: "default"
2 changes: 1 addition & 1 deletion .github/workflows/release-node-alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: bgd-labs/github-workflows/.github/actions/setup-node@main
- uses: aave-dao/github-workflows/.github/actions/setup-node@main

- name: install standard
run: npm i -g standard-version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: bgd-labs/github-workflows/.github/actions/setup-node@main
- uses: aave-dao/github-workflows/.github/actions/setup-node@main

- name: Publish
run: npm publish
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: bgd-labs/github-workflows/.github/actions/setup-node@main
- uses: aave-dao/github-workflows/.github/actions/setup-node@main

- uses: bgd-labs/action-rpc-env@main
- uses: aave-dao/action-rpc-env@main
with:
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2022 BGD Labs
Copyright 2022 Aave Labs
Comment thread
Kogaroshi marked this conversation as resolved.
Outdated

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# BGD <> Github workflows
# Aave <> Github workflows

This repository contains a collection of workflows that are used across BGD repositories.
The workflows can easily be used outside of BGD as well, as long as secrets are properly setup.
This repository contains a collection of workflows that are used across Aave repositories.
The workflows can easily be used outside of Aave as well, as long as secrets are properly setup.

## Setup Node/Bun

Opinionated setup & install for node & bun.

name: `bgd-labs/github-workflows/.github/actions/setup-node@main`
name: `aave-dao/github-workflows/.github/actions/setup-node@main`

- detects node-package-manager to be used (npm/pnpm/yarn) according to present lockfile
- detects runtime-version to used
Expand All @@ -28,15 +28,15 @@ You can use the workflow via:
```yml
jobs:
test:
uses: bgd-labs/github-workflows/.github/workflows/foundry-test.yml@main
uses: aave-dao/github-workflows/.github/workflows/foundry-test.yml@main
```

Per default the workflow will assume your `.env.example` contains variables that are sufficient to run your tests. For advanced usage you can specify custom `RPCs`.

```yml
jobs:
test:
uses: bgd-labs/github-workflows/.github/workflows/foundry-test.yml@main
uses: aave-dao/github-workflows/.github/workflows/foundry-test.yml@main
mode: ALL # or CHANGED
# to inherit all secrets
secrets: inherit
Expand All @@ -59,7 +59,7 @@ on:

jobs:
draft-release:
uses: bgd-labs/github-workflows/.github/workflows/draft-release.yml@main
uses: aave-dao/github-workflows/.github/workflows/draft-release.yml@main
```

## Release-node
Expand All @@ -76,7 +76,7 @@ The workflows will listen for the commit message created by `draft-release` and
`release-node` workflow:

- creates a node release
- the repository **MUST** specify a `ci:publish` step which facilitates [building and publishing](https://github.com/bgd-labs/aave-address-book/blob/main/package.json#L17)
- the repository **MUST** specify a `ci:publish` step which facilitates [building and publishing](https://github.com/aave-dao/aave-address-book/blob/main/package.json#L17)

```yml
on:
Expand All @@ -86,7 +86,7 @@ on:

jobs:
release-node:
uses: bgd-labs/github-workflows/.github/workflows/release-node.yml@main
uses: aave-dao/github-workflows/.github/workflows/release-node.yml@main
secrets:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
Comment thread
Kogaroshi marked this conversation as resolved.
"name": "github-workflows",
"version": "1.0.0",
"description": "This repository contains a collection of workflows that are used across BGD repositories. The workflows can easily be used outside of BGD as well, as long as secrets are properly setup.",
"description": "This repository contains a collection of workflows that are used across Aave repositories. The workflows can easily be used outside of Aave as well, as long as secrets are properly setup.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down