diff --git a/.github/workflow-templates/test-dapp.yml b/.github/workflow-templates/test-dapp.yml index 006014c8d55..57dc881fb66 100644 --- a/.github/workflow-templates/test-dapp.yml +++ b/.github/workflow-templates/test-dapp.yml @@ -19,15 +19,19 @@ jobs: - name: Checkout agoric-sdk uses: actions/checkout@v2 + with: + path: agoric-sdk - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} + cache: 'yarn' + cache-dependency-path: agoric-sdk/yarn.lock - name: cache node modules uses: actions/cache@v1 with: path: ~/.cache/yarn - key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} + key: ${{ runner.os }}-yarn-${{ hashFiles('agoric-sdk/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- @@ -54,13 +58,16 @@ jobs: - name: yarn install --frozen-lockfile run: yarn install --frozen-lockfile + working-directory: ./agoric-sdk # 'yarn build' loops over all workspaces - name: yarn build run: yarn build + working-directory: ./agoric-sdk - name: yarn link run: | yarn link-cli ~/bin/agoric echo "/home/runner/bin" >> $GITHUB_PATH + working-directory: ./agoric-sdk - name: Check out dapp uses: actions/checkout@v2 diff --git a/.github/workflows/test-dapp-card-store.yml b/.github/workflows/test-dapp-card-store.yml index 9fa032fbb11..59b2abc35d5 100644 --- a/.github/workflows/test-dapp-card-store.yml +++ b/.github/workflows/test-dapp-card-store.yml @@ -19,15 +19,19 @@ jobs: - name: Checkout agoric-sdk uses: actions/checkout@v2 + with: + path: agoric-sdk - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} + cache: 'yarn' + cache-dependency-path: agoric-sdk/yarn.lock - name: cache node modules uses: actions/cache@v1 with: path: ~/.cache/yarn - key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} + key: ${{ runner.os }}-yarn-${{ hashFiles('agoric-sdk/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- @@ -54,13 +58,16 @@ jobs: - name: yarn install --frozen-lockfile run: yarn install --frozen-lockfile + working-directory: ./agoric-sdk # 'yarn build' loops over all workspaces - name: yarn build run: yarn build + working-directory: ./agoric-sdk - name: yarn link run: | yarn link-cli ~/bin/agoric echo "/home/runner/bin" >> $GITHUB_PATH + working-directory: ./agoric-sdk - name: Check out dapp uses: actions/checkout@v2 diff --git a/.github/workflows/test-dapp-fungible-faucet.yml b/.github/workflows/test-dapp-fungible-faucet.yml index afd7dc8d44d..8f481a89441 100644 --- a/.github/workflows/test-dapp-fungible-faucet.yml +++ b/.github/workflows/test-dapp-fungible-faucet.yml @@ -19,15 +19,19 @@ jobs: - name: Checkout agoric-sdk uses: actions/checkout@v2 + with: + path: agoric-sdk - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} + cache: 'yarn' + cache-dependency-path: agoric-sdk/yarn.lock - name: cache node modules uses: actions/cache@v1 with: path: ~/.cache/yarn - key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} + key: ${{ runner.os }}-yarn-${{ hashFiles('agoric-sdk/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- @@ -54,13 +58,16 @@ jobs: - name: yarn install --frozen-lockfile run: yarn install --frozen-lockfile + working-directory: ./agoric-sdk # 'yarn build' loops over all workspaces - name: yarn build run: yarn build + working-directory: ./agoric-sdk - name: yarn link run: | yarn link-cli ~/bin/agoric echo "/home/runner/bin" >> $GITHUB_PATH + working-directory: ./agoric-sdk - name: Check out dapp uses: actions/checkout@v2 diff --git a/.github/workflows/test-dapp-oracle.yml b/.github/workflows/test-dapp-oracle.yml index f5b5747541a..38adcf96059 100644 --- a/.github/workflows/test-dapp-oracle.yml +++ b/.github/workflows/test-dapp-oracle.yml @@ -19,15 +19,19 @@ jobs: - name: Checkout agoric-sdk uses: actions/checkout@v2 + with: + path: agoric-sdk - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} + cache: 'yarn' + cache-dependency-path: agoric-sdk/yarn.lock - name: cache node modules uses: actions/cache@v1 with: path: ~/.cache/yarn - key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} + key: ${{ runner.os }}-yarn-${{ hashFiles('agoric-sdk/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- @@ -54,13 +58,16 @@ jobs: - name: yarn install --frozen-lockfile run: yarn install --frozen-lockfile + working-directory: ./agoric-sdk # 'yarn build' loops over all workspaces - name: yarn build run: yarn build + working-directory: ./agoric-sdk - name: yarn link run: | yarn link-cli ~/bin/agoric echo "/home/runner/bin" >> $GITHUB_PATH + working-directory: ./agoric-sdk - name: Check out dapp uses: actions/checkout@v2 diff --git a/.github/workflows/test-dapp-otc.yml b/.github/workflows/test-dapp-otc.yml index 71301a0ff38..b8c3f9e8d03 100644 --- a/.github/workflows/test-dapp-otc.yml +++ b/.github/workflows/test-dapp-otc.yml @@ -19,15 +19,19 @@ jobs: - name: Checkout agoric-sdk uses: actions/checkout@v2 + with: + path: agoric-sdk - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} + cache: 'yarn' + cache-dependency-path: agoric-sdk/yarn.lock - name: cache node modules uses: actions/cache@v1 with: path: ~/.cache/yarn - key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} + key: ${{ runner.os }}-yarn-${{ hashFiles('agoric-sdk/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- @@ -54,13 +58,16 @@ jobs: - name: yarn install --frozen-lockfile run: yarn install --frozen-lockfile + working-directory: ./agoric-sdk # 'yarn build' loops over all workspaces - name: yarn build run: yarn build + working-directory: ./agoric-sdk - name: yarn link run: | yarn link-cli ~/bin/agoric echo "/home/runner/bin" >> $GITHUB_PATH + working-directory: ./agoric-sdk - name: Check out dapp uses: actions/checkout@v2 diff --git a/.github/workflows/test-dapp-pegasus.yml b/.github/workflows/test-dapp-pegasus.yml index 3930546a2a6..b700fd98c2a 100644 --- a/.github/workflows/test-dapp-pegasus.yml +++ b/.github/workflows/test-dapp-pegasus.yml @@ -19,15 +19,19 @@ jobs: - name: Checkout agoric-sdk uses: actions/checkout@v2 + with: + path: agoric-sdk - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} + cache: 'yarn' + cache-dependency-path: agoric-sdk/yarn.lock - name: cache node modules uses: actions/cache@v1 with: path: ~/.cache/yarn - key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} + key: ${{ runner.os }}-yarn-${{ hashFiles('agoric-sdk/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- @@ -54,13 +58,16 @@ jobs: - name: yarn install --frozen-lockfile run: yarn install --frozen-lockfile + working-directory: ./agoric-sdk # 'yarn build' loops over all workspaces - name: yarn build run: yarn build + working-directory: ./agoric-sdk - name: yarn link run: | yarn link-cli ~/bin/agoric echo "/home/runner/bin" >> $GITHUB_PATH + working-directory: ./agoric-sdk - name: Check out dapp uses: actions/checkout@v2 diff --git a/.github/workflows/test-dapp-simple-exchange.yml b/.github/workflows/test-dapp-simple-exchange.yml index 32c18266ae7..978ba4e2164 100644 --- a/.github/workflows/test-dapp-simple-exchange.yml +++ b/.github/workflows/test-dapp-simple-exchange.yml @@ -19,15 +19,19 @@ jobs: - name: Checkout agoric-sdk uses: actions/checkout@v2 + with: + path: agoric-sdk - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} + cache: 'yarn' + cache-dependency-path: agoric-sdk/yarn.lock - name: cache node modules uses: actions/cache@v1 with: path: ~/.cache/yarn - key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} + key: ${{ runner.os }}-yarn-${{ hashFiles('agoric-sdk/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- @@ -54,13 +58,16 @@ jobs: - name: yarn install --frozen-lockfile run: yarn install --frozen-lockfile + working-directory: ./agoric-sdk # 'yarn build' loops over all workspaces - name: yarn build run: yarn build + working-directory: ./agoric-sdk - name: yarn link run: | yarn link-cli ~/bin/agoric echo "/home/runner/bin" >> $GITHUB_PATH + working-directory: ./agoric-sdk - name: Check out dapp uses: actions/checkout@v2 diff --git a/.github/workflows/test-dapp-treasury.yml b/.github/workflows/test-dapp-treasury.yml index ad55d9be115..012d4d44727 100644 --- a/.github/workflows/test-dapp-treasury.yml +++ b/.github/workflows/test-dapp-treasury.yml @@ -19,15 +19,19 @@ jobs: - name: Checkout agoric-sdk uses: actions/checkout@v2 + with: + path: agoric-sdk - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} + cache: 'yarn' + cache-dependency-path: agoric-sdk/yarn.lock - name: cache node modules uses: actions/cache@v1 with: path: ~/.cache/yarn - key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} + key: ${{ runner.os }}-yarn-${{ hashFiles('agoric-sdk/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- @@ -54,13 +58,16 @@ jobs: - name: yarn install --frozen-lockfile run: yarn install --frozen-lockfile + working-directory: ./agoric-sdk # 'yarn build' loops over all workspaces - name: yarn build run: yarn build + working-directory: ./agoric-sdk - name: yarn link run: | yarn link-cli ~/bin/agoric echo "/home/runner/bin" >> $GITHUB_PATH + working-directory: ./agoric-sdk - name: Check out dapp uses: actions/checkout@v2