Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 11, 2024
2 parents f2996a8 + 59e1b71 commit 397541e
Show file tree
Hide file tree
Showing 252 changed files with 23,526 additions and 21,407 deletions.
8 changes: 4 additions & 4 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* @alainncls @satyajeetkolhapure @orbmis @0xEillo
/explorer/ @alainncls @satyajeetkolhapure @orbmis @0xEillo @ars9 @Solniechniy
/governance/ @alainncls @satyajeetkolhapure @orbmis @0xEillo @DAOstrat
pnpm-workspace.yaml @alainncls @satyajeetkolhapure @orbmis @0xEillo @DAOstrat @ars9 @Solniechniy
* @alainncls @satyajeetkolhapure @orbmis @arthur-remy
/explorer/ @alainncls @satyajeetkolhapure @orbmis @arthur-remy @ars9 @Solniechniy
/governance/ @alainncls @satyajeetkolhapure @orbmis @arthur-remy @DAOstrat
pnpm-workspace.yaml @alainncls @satyajeetkolhapure @orbmis @arthur-remy @DAOstrat @ars9 @Solniechniy
2 changes: 1 addition & 1 deletion .github/workflows/explorer-deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
deploy-explorer-prod:
if:
github.actor == 'alainncls' || github.actor == 'satyajeetkolhapure' || github.actor == 'orbmis' ||
github.actor == '0xEillo' || github.actor == 'ars9' || github.actor == 'Solniechniy'
github.actor == 'arthur-remy' || github.actor == 'ars9' || github.actor == 'Solniechniy'

runs-on: ubuntu-latest

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
release:
if:
github.actor == 'alainncls' || github.actor == 'satyajeetkolhapure' || github.actor == 'orbmis' ||
github.actor == '0xEillo'
github.actor == 'arthur-remy'

runs-on: ubuntu-latest

Expand Down
90 changes: 85 additions & 5 deletions .github/workflows/smart-contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,25 +138,38 @@ jobs:
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0

- id: check-changes
run: |
if [ -n "$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} | grep '^contracts/')" ]; then
echo "::set-output name=changed::true"
else
echo "::set-output name=changed::false"
fi
- name: Install Pnpm
if: steps.check-changes.outputs.changed == 'true'
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

- name: Install Node.js
if: steps.check-changes.outputs.changed == 'true'
uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm

- name: Get pnpm store directory
if: steps.check-changes.outputs.changed == 'true'
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
if: steps.check-changes.outputs.changed == 'true'
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
Expand All @@ -165,18 +178,23 @@ jobs:
${{ runner.os }}-pnpm-store-
- name: Install dependencies
if: steps.check-changes.outputs.changed == 'true'
run: pnpm install --frozen-lockfile

- name: Install Foundry
if: steps.check-changes.outputs.changed == 'true'
uses: foundry-rs/foundry-toolchain@v1

- name: Generate the coverage report using the unit tests
if: steps.check-changes.outputs.changed == 'true'
run: cd contracts && forge coverage --report lcov

- name: Move the report at the root of the project
if: steps.check-changes.outputs.changed == 'true'
run: mv contracts/lcov.info .

- name: Upload coverage report to Codecov
if: steps.check-changes.outputs.changed == 'true'
uses: codecov/codecov-action@v3
with:
files: ./lcov.info
Expand All @@ -185,16 +203,24 @@ jobs:
verbose: true

- name: Check test coverage
if: steps.check-changes.outputs.changed == 'true'
uses: terencetcf/github-actions-lcov-minimum-coverage-checker@v1
with:
coverage-file: lcov.info
minimum-coverage: 95
minimum-coverage: 94

- name: Add coverage summary
if: steps.check-changes.outputs.changed == 'true'
run: |
echo "## Coverage result" >> $GITHUB_STEP_SUMMARY
echo "✅ Uploaded to Codecov" >> $GITHUB_STEP_SUMMARY
- name: Add coverage summary
if: steps.check-changes.outputs.changed == 'false'
run: |
echo "## Coverage result" >> $GITHUB_STEP_SUMMARY
echo "✅ No coverage report to upload" >> $GITHUB_STEP_SUMMARY
upgradeability-contracts:
runs-on: ubuntu-latest

Expand Down Expand Up @@ -293,15 +319,15 @@ jobs:
if: steps.check-changes.outputs.changed == 'true'
run: pnpm run check:implementations

- name: Create Linea testnet env file
- name: Create Linea Sepolia env file
if: steps.check-changes.outputs.changed == 'true'
run: |
cp ./env/.env.linea-goerli .env
cp ./env/.env.linea-sepolia .env
echo INFURA_KEY=${{ secrets.INFURA_KEY }} >> .env
- name: Check contracts upgradeability on Linea testnet
- name: Check contracts upgradeability on Linea Sepolia
if: steps.check-changes.outputs.changed == 'true'
run: pnpm run check:upgradeability linea-goerli
run: pnpm run check:upgradeability linea-sepolia

- name: Create Linea mainnet env file
if: steps.check-changes.outputs.changed == 'true'
Expand Down Expand Up @@ -336,6 +362,60 @@ jobs:
if: steps.check-changes.outputs.changed == 'true'
run: pnpm run check:upgradeability arbitrum

- name: Create Arbitrum Nova env file
if: steps.check-changes.outputs.changed == 'true'
run: |
rm .env
cp ./env/.env.arbitrum-nova .env
- name: Check contracts upgradeability on Arbitrum Nova
if: steps.check-changes.outputs.changed == 'true'
run: pnpm run check:upgradeability arbitrum-nova

- name: Create Base Sepolia env file
if: steps.check-changes.outputs.changed == 'true'
run: |
rm .env
cp ./env/.env.base-sepolia .env
echo INFURA_KEY=${{ secrets.INFURA_KEY }} >> .env
- name: Check contracts upgradeability on Base Sepolia
if: steps.check-changes.outputs.changed == 'true'
run: pnpm run check:upgradeability base-sepolia

- name: Create Base mainnet env file
if: steps.check-changes.outputs.changed == 'true'
run: |
rm .env
cp ./env/.env.base .env
echo INFURA_KEY=${{ secrets.INFURA_KEY }} >> .env
- name: Check contracts upgradeability on Base
if: steps.check-changes.outputs.changed == 'true'
run: pnpm run check:upgradeability base

- name: Create BSC testnet env file
if: steps.check-changes.outputs.changed == 'true'
run: |
rm .env
cp ./env/.env.bsc-testnet .env
echo INFURA_KEY=${{ secrets.INFURA_KEY }} >> .env
- name: Check contracts upgradeability on BSC testnet
if: steps.check-changes.outputs.changed == 'true'
run: pnpm run check:upgradeability bsc-testnet

- name: Create BSC mainnet env file
if: steps.check-changes.outputs.changed == 'true'
run: |
rm .env
cp ./env/.env.bsc .env
echo INFURA_KEY=${{ secrets.INFURA_KEY }} >> .env
- name: Check contracts upgradeability on BSC mainnet
if: steps.check-changes.outputs.changed == 'true'
run: pnpm run check:upgradeability bsc

- name: Add upgradeability summary
if: steps.check-changes.outputs.changed == 'true'
run: |
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/subgraph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,11 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build the subgraph
run: pnpm run build:linea-goerli
- name: Build the subgraph V1
run: pnpm run build:linea-sepolia:v1

- name: Build the subgraph V2
run: pnpm run build:linea-sepolia:v2

- name: Run the unit tests
run: pnpm run test
Expand Down
61 changes: 0 additions & 61 deletions .github/workflows/tutorial-build.yml

This file was deleted.

96 changes: 0 additions & 96 deletions .github/workflows/tutorial-deploy-preview.yml

This file was deleted.

Loading

0 comments on commit 397541e

Please sign in to comment.