Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dapp workflows to handle deps version discrepancies #4433

Merged
merged 2 commits into from
Feb 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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