-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into wallet-keplr
- Loading branch information
Showing
122 changed files
with
7,196 additions
and
2,860 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ name: Test Dapp | |
|
||
on: | ||
push: | ||
branches: [ $default-branch ] | ||
branches: [$default-branch] | ||
pull_request: | ||
|
||
jobs: | ||
|
@@ -16,74 +16,73 @@ jobs: | |
node-version: ['14.x'] | ||
|
||
steps: | ||
- name: Checkout agoric-sdk | ||
uses: actions/checkout@v2 | ||
with: | ||
path: agoric-sdk | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
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('agoric-sdk/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Checkout agoric-sdk | ||
uses: actions/checkout@v2 | ||
with: | ||
path: agoric-sdk | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
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('agoric-sdk/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
# Select a branch on dapp to test against by adding text to the body of the | ||
# pull request. For example: #dapp-encouragement-branch: zoe-release-0.7.0 | ||
# The default is 'main' | ||
- name: Get the appropriate dapp branch | ||
id: get-branch | ||
uses: actions/[email protected] | ||
with: | ||
result-encoding: string | ||
script: | | ||
let branch = 'main'; | ||
if (context.payload.pull_request) { | ||
const { body } = context.payload.pull_request; | ||
const regex = /.*\#[[INSERT_DAPP_NAME]]-branch:\s+(\S+)/; | ||
const result = regex.exec(body); | ||
if (result) { | ||
branch = result[1]; | ||
# Select a branch on dapp to test against by adding text to the body of the | ||
# pull request. For example: #dapp-encouragement-branch: zoe-release-0.7.0 | ||
# The default is 'main' | ||
- name: Get the appropriate dapp branch | ||
id: get-branch | ||
uses: actions/[email protected] | ||
with: | ||
result-encoding: string | ||
script: | | ||
let branch = 'main'; | ||
if (context.payload.pull_request) { | ||
const { body } = context.payload.pull_request; | ||
const regex = /.*\#[[INSERT_DAPP_NAME]]-branch:\s+(\S+)/; | ||
const result = regex.exec(body); | ||
if (result) { | ||
branch = result[1]; | ||
} | ||
} | ||
} | ||
console.log(branch); | ||
return branch; | ||
console.log(branch); | ||
return branch; | ||
- 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: 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 | ||
with: | ||
repository: Agoric/[[INSERT_DAPP_NAME]] | ||
path: dapp | ||
ref: ${{steps.get-branch.outputs.result}} | ||
|
||
- name: Check out dapp | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: Agoric/[[INSERT_DAPP_NAME]] | ||
path: dapp | ||
ref: ${{steps.get-branch.outputs.result}} | ||
- name: Agoric install in dapp | ||
run: agoric install | ||
working-directory: ./dapp | ||
|
||
- name: Agoric install in dapp | ||
run: agoric install | ||
working-directory: ./dapp | ||
- name: yarn build in dapp | ||
run: yarn build | ||
working-directory: ./dapp | ||
|
||
- name: yarn build in dapp | ||
run: yarn build | ||
working-directory: ./dapp | ||
|
||
- name: yarn test in dapp | ||
run: yarn test | ||
working-directory: ./dapp | ||
- name: yarn test in dapp | ||
run: yarn test | ||
working-directory: ./dapp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.