diff --git a/.github/workflows/block-build.yml b/.github/workflows/block-build.yml index 83d81229c8..8064a13cc7 100644 --- a/.github/workflows/block-build.yml +++ b/.github/workflows/block-build.yml @@ -20,27 +20,15 @@ concurrency: jobs: test-block: + needs: 'build-monorepo' runs-on: ubuntu-latest strategy: matrix: node-version: [18] steps: - - uses: actions/checkout@v4 + - name: 'Load cache' + uses: 'actions/cache@v3' with: - submodules: recursive - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - - run: npm ci --omit=peer - working-directory: ${{github.workspace}} - - - run: npm run lint - - run: npm run coverage - - uses: codecov/codecov-action@v3 - with: - files: ${{ env.cwd }}/coverage/lcov.info - flags: block + path: '.' + key: '${{ runner.os }}-node-18-${{ git rev-parse HEAD }}' + restore-keys: '${{ runner.os }}-node-18' \ No newline at end of file diff --git a/.github/workflows/blockchain-build.yml b/.github/workflows/blockchain-build.yml index d8faae7d70..83537d07f5 100644 --- a/.github/workflows/blockchain-build.yml +++ b/.github/workflows/blockchain-build.yml @@ -3,8 +3,8 @@ on: push: branches: [master, develop] tags: ['*'] - pull_request: - types: [opened, reopened, synchronize] + #pull_request: + # types: [opened, reopened, synchronize] workflow_dispatch: env: diff --git a/.github/workflows/browser.yml b/.github/workflows/browser.yml index 5465463ef3..a10e44e197 100644 --- a/.github/workflows/browser.yml +++ b/.github/workflows/browser.yml @@ -3,8 +3,8 @@ on: push: branches: [master, develop] tags: ['*'] - pull_request: - types: [opened, reopened, synchronize] + #pull_request: + # types: [opened, reopened, synchronize] workflow_dispatch: env: diff --git a/.github/workflows/build-monorepo.yml b/.github/workflows/build-monorepo.yml new file mode 100644 index 0000000000..8386a07372 --- /dev/null +++ b/.github/workflows/build-monorepo.yml @@ -0,0 +1,34 @@ +name: Build +on: + push: + branches: [master, develop] + tags: ['*'] + pull_request: + types: [opened, reopened, synchronize] + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + build-monorepo: + runs-on: ubuntu-latest + steps: + - name: Checkout monorepo + uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Setup node + uses: actions/setup-node@v4 + with: + node-version: 18 + cache: 'npm' + + - name: 'Cache build' + uses: 'actions/cache@v3' + with: + path: ~ + key: ${{ runner.os }}-node-18-${{ git rev-parse HEAD }} + restore-keys: ${{ runner.os }}-node-18- \ No newline at end of file diff --git a/.github/workflows/client-build.yml b/.github/workflows/client-build.yml index 065e7185e3..84ade1f377 100644 --- a/.github/workflows/client-build.yml +++ b/.github/workflows/client-build.yml @@ -3,8 +3,8 @@ on: push: branches: [master, develop] tags: ['*'] - pull_request: - types: [opened, reopened, synchronize] + #pull_request: + # types: [opened, reopened, synchronize] workflow_dispatch: env: diff --git a/.github/workflows/common-build.yml b/.github/workflows/common-build.yml index ec2a134ad2..326c9ba149 100644 --- a/.github/workflows/common-build.yml +++ b/.github/workflows/common-build.yml @@ -3,8 +3,8 @@ on: push: branches: [master, develop] tags: ['*'] - pull_request: - types: [opened, reopened, synchronize] + #pull_request: + # types: [opened, reopened, synchronize] workflow_dispatch: env: diff --git a/.github/workflows/devp2p-build.yml b/.github/workflows/devp2p-build.yml index 9da55bc3b7..89eb3e652e 100644 --- a/.github/workflows/devp2p-build.yml +++ b/.github/workflows/devp2p-build.yml @@ -3,8 +3,8 @@ on: push: branches: [master, develop] tags: ['*'] - pull_request: - types: [opened, reopened, synchronize] + #pull_request: + # types: [opened, reopened, synchronize] workflow_dispatch: env: diff --git a/.github/workflows/ethash-build.yml b/.github/workflows/ethash-build.yml index e9a90041c6..828716417d 100644 --- a/.github/workflows/ethash-build.yml +++ b/.github/workflows/ethash-build.yml @@ -3,8 +3,8 @@ on: push: branches: [master, develop] tags: ['*'] - pull_request: - types: [opened, reopened, synchronize] + #pull_request: + # types: [opened, reopened, synchronize] workflow_dispatch: env: diff --git a/.github/workflows/evm-build.yml b/.github/workflows/evm-build.yml index d1fbe170de..c1b502cd15 100644 --- a/.github/workflows/evm-build.yml +++ b/.github/workflows/evm-build.yml @@ -3,8 +3,8 @@ on: push: branches: [master, develop] tags: ['*'] - pull_request: - types: [opened, reopened, synchronize] + #pull_request: + # types: [opened, reopened, synchronize] workflow_dispatch: env: diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 65ed2467f0..4372a56655 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -3,8 +3,8 @@ on: push: branches: [master, develop] tags: ['*'] - pull_request: - types: [opened, reopened, synchronize] + #pull_request: + # types: [opened, reopened, synchronize] workflow_dispatch: concurrency: diff --git a/.github/workflows/genesis-build.yml b/.github/workflows/genesis-build.yml index 5eb151352f..7deab1d0f4 100644 --- a/.github/workflows/genesis-build.yml +++ b/.github/workflows/genesis-build.yml @@ -3,8 +3,8 @@ on: push: branches: [master, develop] tags: ['*'] - pull_request: - types: [opened, reopened, synchronize] + #pull_request: + # types: [opened, reopened, synchronize] workflow_dispatch: env: diff --git a/.github/workflows/lockfile.yml b/.github/workflows/lockfile.yml index 5ff7cd8853..05325525a0 100644 --- a/.github/workflows/lockfile.yml +++ b/.github/workflows/lockfile.yml @@ -1,8 +1,8 @@ name: lockfile-lint on: - pull_request: - types: [opened, reopened, synchronize] + #pull_request: + # types: [opened, reopened, synchronize] concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} diff --git a/.github/workflows/rlp-build.yml b/.github/workflows/rlp-build.yml index d7de54212e..1bedaf0bf4 100644 --- a/.github/workflows/rlp-build.yml +++ b/.github/workflows/rlp-build.yml @@ -3,8 +3,8 @@ on: push: branches: [master, develop] tags: ['*'] - pull_request: - types: [opened, reopened, synchronize] + #pull_request: + # types: [opened, reopened, synchronize] workflow_dispatch: env: diff --git a/.github/workflows/statemanager-build.yml b/.github/workflows/statemanager-build.yml index e3477e5c0e..ab2663fdbc 100644 --- a/.github/workflows/statemanager-build.yml +++ b/.github/workflows/statemanager-build.yml @@ -3,8 +3,8 @@ on: push: branches: [master, develop] tags: ['*'] - pull_request: - types: [opened, reopened, synchronize] + #pull_request: + # types: [opened, reopened, synchronize] workflow_dispatch: env: diff --git a/.github/workflows/trie-build.yml b/.github/workflows/trie-build.yml index 37d92c3986..9df11a70c8 100644 --- a/.github/workflows/trie-build.yml +++ b/.github/workflows/trie-build.yml @@ -3,8 +3,8 @@ on: push: branches: [master, develop] tags: ['*'] - pull_request: - types: [opened, reopened, synchronize] + #pull_request: + # types: [opened, reopened, synchronize] workflow_dispatch: env: diff --git a/.github/workflows/tx-build.yml b/.github/workflows/tx-build.yml index 01bcb0f3f9..473ca3db79 100644 --- a/.github/workflows/tx-build.yml +++ b/.github/workflows/tx-build.yml @@ -3,8 +3,8 @@ on: push: branches: [master, develop] tags: ['*'] - pull_request: - types: [opened, reopened, synchronize] + #pull_request: + # types: [opened, reopened, synchronize] workflow_dispatch: env: diff --git a/.github/workflows/util-build.yml b/.github/workflows/util-build.yml index 194edee319..3991eb9ab3 100644 --- a/.github/workflows/util-build.yml +++ b/.github/workflows/util-build.yml @@ -3,8 +3,8 @@ on: push: branches: [master, develop] tags: ['*'] - pull_request: - types: [opened, reopened, synchronize] + #pull_request: + # types: [opened, reopened, synchronize] workflow_dispatch: env: diff --git a/.github/workflows/verkle-build.yml b/.github/workflows/verkle-build.yml index b680510274..f22648d0b4 100644 --- a/.github/workflows/verkle-build.yml +++ b/.github/workflows/verkle-build.yml @@ -3,8 +3,8 @@ on: push: branches: [master, develop] tags: ['*'] - pull_request: - types: [opened, reopened, synchronize] + #pull_request: + # types: [opened, reopened, synchronize] workflow_dispatch: env: diff --git a/.github/workflows/vm-pr.yml b/.github/workflows/vm-pr.yml index 15cd31d8c1..ce43a8ee07 100644 --- a/.github/workflows/vm-pr.yml +++ b/.github/workflows/vm-pr.yml @@ -1,7 +1,7 @@ name: VM on: - pull_request: - types: [opened, reopened, synchronize] + #pull_request: + # types: [opened, reopened, synchronize] workflow_dispatch: env: diff --git a/.github/workflows/wallet-build.yml b/.github/workflows/wallet-build.yml index 9a9ecb8022..011e18d0e4 100644 --- a/.github/workflows/wallet-build.yml +++ b/.github/workflows/wallet-build.yml @@ -3,8 +3,8 @@ on: push: branches: [master, develop] tags: ['*'] - pull_request: - types: [opened, reopened, synchronize] + #pull_request: + # types: [opened, reopened, synchronize] workflow_dispatch: env: