Skip to content
Merged
3 changes: 3 additions & 0 deletions .github/workflows/circular.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
pull_request:
types: [ready_for_review, synchronize, opened]

permissions:
contents: read

jobs:
source:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
- main
- develop

permissions:
contents: read

env:
FOUNDRY_PROFILE: ci
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Expand Down
26 changes: 15 additions & 11 deletions .github/workflows/deps.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
name: Dependencies
on:
pull_request:
types:
- ready_for_review
- synchronize
- opened
push:
branches:
- main
- develop

permissions:
contents: read

jobs:
source:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -36,14 +51,3 @@ jobs:
strategy:
matrix:
node-version: [22.x]
name: Dependencies
on:
pull_request:
types:
- ready_for_review
- synchronize
- opened
push:
branches:
- main
- develop
68 changes: 0 additions & 68 deletions .github/workflows/functional.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .github/workflows/lint-internal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
pull_request:
types: [ready_for_review, synchronize, opened]

permissions:
contents: read

jobs:
source:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ env:
DEBUG: napi:*
APP_NAME: evm
MACOSX_DEPLOYMENT_TARGET: "10.13"

permissions:
contents: write
id-token: write
contents: read

on:
push:
Expand Down
131 changes: 93 additions & 38 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@ on:
- main
- develop

permissions:
contents: read

env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

jobs:
build:
name: "Build"
strategy:
matrix:
node-version: [22.x]
Expand Down Expand Up @@ -46,15 +50,8 @@ jobs:
- name: Cache pnpm modules
uses: actions/cache@v4
with:
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
restore-keys: ${{ runner.os }}-pnpm-

- name: Cache lerna
uses: actions/cache@v4
with:
key: lerna-${{ runner.os }}-${{ github.run_id }}
path: ./.cache

- uses: actions-rs/toolchain@v1
with:
Expand All @@ -65,10 +62,18 @@ jobs:

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm run build

- name: Cache lerna
uses: actions/cache/save@v4
with:
key: lerna-${{ github.sha }}
path: ./.cache

unit:
name: "Unit"
needs:
- build
strategy:
Expand All @@ -95,17 +100,15 @@ jobs:
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
shell: bash
- name: Cache pnpm modules
uses: actions/cache@v4
uses: actions/cache/restore@v4
with:
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
restore-keys: ${{ runner.os }}-pnpm-
- name: Cache lerna
uses: actions/cache@v4
uses: actions/cache/restore@v4
with:
key: lerna-${{ runner.os }}
key: lerna-${{ github.sha }}
path: ./.cache
restore-keys: lerna-${{ runner.os }}-
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
Expand Down Expand Up @@ -264,6 +267,7 @@ jobs:
flags: packages

integration:
name: "Integration"
needs:
- build
strategy:
Expand Down Expand Up @@ -301,17 +305,15 @@ jobs:
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
shell: bash
- name: Cache pnpm modules
uses: actions/cache@v4
uses: actions/cache/restore@v4
with:
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
restore-keys: ${{ runner.os }}-pnpm-
- name: Cache lerna
uses: actions/cache@v4
uses: actions/cache/restore@v4
with:
key: lerna-${{ runner.os }}
key: lerna-${{ github.sha }}
path: ./.cache
restore-keys: lerna-${{ runner.os }}-
- name: Install dependencies
run: pnpm install
- name: Build
Expand Down Expand Up @@ -353,17 +355,15 @@ jobs:
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
shell: bash
- name: Cache pnpm modules
uses: actions/cache@v4
uses: actions/cache/restore@v4
with:
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
restore-keys: ${{ runner.os }}-pnpm-
- name: Cache lerna
uses: actions/cache@v4
uses: actions/cache/restore@v4
with:
key: lerna-${{ runner.os }}
key: lerna-${{ github.sha }}
path: ./.cache
restore-keys: lerna-${{ runner.os }}-
- name: Install dependencies
run: pnpm install
- name: Build
Expand Down Expand Up @@ -439,17 +439,15 @@ jobs:
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
shell: bash
- name: Cache pnpm modules
uses: actions/cache@v4
uses: actions/cache/restore@v4
with:
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
restore-keys: ${{ runner.os }}-pnpm-
- name: Cache lerna
uses: actions/cache@v4
uses: actions/cache/restore@v4
with:
key: lerna-${{ runner.os }}
key: lerna-${{ github.sha }}
path: ./.cache
restore-keys: lerna-${{ runner.os }}-
- name: Install dependencies
run: pnpm install
- name: Build
Expand Down Expand Up @@ -498,17 +496,15 @@ jobs:
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
shell: bash
- name: Cache pnpm modules
uses: actions/cache@v4
uses: actions/cache/restore@v4
with:
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
restore-keys: ${{ runner.os }}-pnpm-
- name: Cache lerna
uses: actions/cache@v4
uses: actions/cache/restore@v4
with:
key: lerna-${{ runner.os }}
key: lerna-${{ github.sha }}
path: ./.cache
restore-keys: lerna-${{ runner.os }}-
- name: Install dependencies
run: pnpm install
- name: Build
Expand Down Expand Up @@ -544,3 +540,62 @@ jobs:
- name: Show logs - checks
if: always()
run: docker logs snapshot-checks-1

functional:
name: "Functional - ${{matrix.name}}"
needs:
- build
concurrency:
cancel-in-progress: true
group: ${{ github.head_ref }}-functional-${{matrix.name}}
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [22.x]
name: ["transaction-pool-api"]

services:
postgres:
image: postgres:16
env:
POSTGRES_DB: test_db
POSTGRES_USER: test_db
POSTGRES_PASSWORD: password
ports:
- 127.0.0.1:5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
version: latest
- name: Get pnpm store directory
id: pnpm-cache
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
shell: bash
- name: Cache pnpm modules
uses: actions/cache/restore@v4
with:
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
- name: Cache lerna
uses: actions/cache/restore@v4
with:
key: lerna-${{ github.sha }}
path: ./.cache
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm run build

- name: Test ${{ matrix.name }}
run: cd tests/functional/${{ matrix.name }} && pnpm run test:full
Comment thread Fixed
Loading