Skip to content

Commit

Permalink
fix: Update dapp workflows to handle deps version discrepancies
Browse files Browse the repository at this point in the history
  • Loading branch information
mhofman committed Feb 1, 2022
1 parent f0eba3c commit 4827d9a
Show file tree
Hide file tree
Showing 8 changed files with 72 additions and 16 deletions.
11 changes: 9 additions & 2 deletions .github/workflow-templates/test-dapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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-
Expand All @@ -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
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/test-dapp-card-store.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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-
Expand All @@ -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
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/test-dapp-fungible-faucet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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-
Expand All @@ -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
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/test-dapp-oracle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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-
Expand All @@ -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
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/test-dapp-otc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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-
Expand All @@ -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
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/test-dapp-pegasus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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-
Expand All @@ -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
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/test-dapp-simple-exchange.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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-
Expand All @@ -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
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/test-dapp-treasury.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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-
Expand All @@ -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
Expand Down

0 comments on commit 4827d9a

Please sign in to comment.