From 1c73b86fbbcf6030db4830e56d93bd747f8961e2 Mon Sep 17 00:00:00 2001 From: Eric Corson Date: Mon, 24 Jul 2023 14:03:59 +0900 Subject: [PATCH] does this work? --- .github/workflows/deploy-wallet-at-pr.yml | 66 ++++++++++++++--------- 1 file changed, 42 insertions(+), 24 deletions(-) diff --git a/.github/workflows/deploy-wallet-at-pr.yml b/.github/workflows/deploy-wallet-at-pr.yml index dda56e236e..259095a203 100644 --- a/.github/workflows/deploy-wallet-at-pr.yml +++ b/.github/workflows/deploy-wallet-at-pr.yml @@ -16,35 +16,63 @@ on: env: CI: false jobs: - lint: + setup: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 + + - name: Restore Rust cache + uses: actions/cache@v2 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + ./packages/shared/lib/target + ./packages/crypto/lib/target + key: ${{ runner.os }}-rust-cache-${{ hashFiles('**/Cargo.lock') }} + + - name: Restore npm cache + uses: actions/cache@v2 + with: + path: | + ~/node_modules + ~/apps/namada-interface/node_modules + ~/apps/extension/node_modules + ~/packages/chains/node_modules + ~/packages/components/node_modules + ~/packages/crypto/node_modules + ~/packages/hooks/node_modules + ~/packages/integrations/node_modules + ~/packages/ledger-namada/node_modules + ~/packages/rpc/node_modules + ~/packages/shared/node_modules + ~/packages/storage/node_modules + ~/packages/types/node_modules + ~/packages/utils/node_modules + key: ${{ runner.os }}-npm-cache-${{ hashFiles('**/yarn.lock') }} - name: Install dependencies run: yarn + + lint: + needs: setup + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Run ESLint run: yarn lint:ci unit-tests-js: - needs: lint + needs: setup runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v3 - - name: Rust cache - uses: actions/cache@v2 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - ./packages/shared/lib/target - ./packages/crypto/lib/target - key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.lock') }} - - name: Install protoc run: sudo apt-get install -y protobuf-compiler @@ -78,7 +106,7 @@ jobs: ${{ secrets.SLACK_WEBHOOK_WALLET_PR }} unit-tests-wasm: - needs: lint + needs: setup runs-on: ubuntu-latest steps: - name: Checkout repository @@ -119,16 +147,6 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - - name: Rust cache - uses: actions/cache@v2 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - ./packages/shared/lib/target - ./packages/crypto/lib/target - key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }} - - name: Install protoc run: sudo apt-get install -y protobuf-compiler