-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(gha): clean up gha, better caching
- Loading branch information
Showing
12 changed files
with
82 additions
and
106 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{ "hash": "06455ee423dce193", "duration": 9404 } |
Binary file not shown.
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 @@ | ||
{ "hash": "8c5ed2801c551e52", "duration": 1060 } |
Binary file not shown.
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,42 @@ | ||
name: "Install dependencies" | ||
description: "Prepare repository and all dependencies" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: "pnpm" | ||
registry-url: https://registry.npmjs.org/ | ||
scope: "@boostxyz" | ||
- uses: pnpm/action-setup@v4 | ||
name: Install pnpm | ||
with: | ||
version: 8 | ||
run_install: false | ||
- name: Get pnpm store directory | ||
shell: bash | ||
run: | | ||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | ||
- uses: actions/cache@v4 | ||
name: Setup cache | ||
with: | ||
path: | ||
- ${{ env.STORE_PATH }} | ||
- .cache | ||
key: ${{ runner.os }}-cache-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-cache- | ||
- name: Install dependencies | ||
shell: bash | ||
run: pnpm install | ||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -11,47 +11,43 @@ jobs: | |
timeout-minutes: 15 | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
uses: ./.github/actions/install-dependencies | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build | ||
run: pnpm build | ||
|
||
# test: | ||
# name: Test | ||
# runs-on: ubuntu-latest | ||
# strategy: | ||
# matrix: | ||
# shard: [1, 2, 3] | ||
# total-shards: [3] | ||
# transport-mode: ["http", "webSocket"] | ||
# include: | ||
# - batch-multicall: "false" | ||
# - batch-multicall: "true" | ||
# transport-mode: "http" | ||
|
||
# steps: | ||
# - name: Clone repository | ||
# uses: actions/checkout@v4 | ||
run: npx turbo build --cache-dir=".cache" | ||
|
||
# - name: Install dependencies | ||
# uses: ./.github/actions/install-dependencies | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
shard: [1, 2, 3] | ||
total-shards: [3] | ||
transport-mode: ["http", "webSocket"] | ||
include: | ||
- batch-multicall: "false" | ||
- batch-multicall: "true" | ||
transport-mode: "http" | ||
|
||
# - name: Run tests | ||
# uses: nick-fields/retry@v3 | ||
# with: | ||
# timeout_minutes: 20 | ||
# max_attempts: 3 | ||
# command: pnpm test:ci -- --shard=${{ matrix.shard }}/${{ matrix.total-shards }} | ||
steps: | ||
- name: Install dependencies | ||
uses: ./.github/actions/install-dependencies | ||
env: | ||
# TODO set theses | ||
TEST_SIGNER_PRIVATE_KEY: ${{ secrets.TEST_SIGNER_PRIVATE_KEY }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: Upload coverage reports to Codecov | ||
# uses: codecov/[email protected] | ||
# with: | ||
# token: ${{ secrets.CODECOV_TOKEN }} | ||
- name: Run tests | ||
uses: nick-fields/retry@v3 | ||
with: | ||
timeout_minutes: 20 | ||
max_attempts: 3 | ||
command: npx turbo test:ci --cache-dir=".cache" -- --shard=${{ matrix.shard }}/${{ matrix.total-shards }} | ||
|
||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} |
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