diff --git a/.github/workflows/setup.yaml b/.github/workflows/setup.yaml deleted file mode 100644 index 2225097db..000000000 --- a/.github/workflows/setup.yaml +++ /dev/null @@ -1,33 +0,0 @@ -name: Setup -on: - workflow_call: - -jobs: - setup: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Install pnpm - uses: pnpm/action-setup@v4 - with: - version: 10 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: 'pnpm' - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Cache node modules - uses: actions/cache@v4 - with: - path: | - node_modules - ~/.pnpm-store - key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm- \ No newline at end of file diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 5e2c944a6..f2cb91779 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -10,7 +10,20 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: ./.github/workflows/setup.yaml + + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 10 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install --frozen-lockfile - name: Get contract addresses run: 'parallel --lb --halt now,success=1,fail=1 ::: \ @@ -26,7 +39,20 @@ jobs: type: [stateless, stateful] steps: - uses: actions/checkout@v4 - - uses: ./.github/workflows/setup.yaml + + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 10 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install --frozen-lockfile - name: Get contract addresses if: matrix.type == 'stateless' @@ -63,7 +89,20 @@ jobs: shard: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] steps: - uses: actions/checkout@v4 - - uses: ./.github/workflows/setup.yaml + + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 10 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install --frozen-lockfile - name: Cache Playwright browsers uses: actions/cache@v4 @@ -108,7 +147,21 @@ jobs: shard: [1, 2, 3] steps: - uses: actions/checkout@v4 - - uses: ./.github/workflows/setup.yaml + + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 10 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install --frozen-lockfile + - run: ./scripts/check-chrome.sh - name: Cache Playwright browsers