-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #912 from Agoric/ta/yarn-4
upgrade to Yarn 4
- Loading branch information
Showing
19 changed files
with
9,159 additions
and
153,211 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
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
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
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 |
---|---|---|
|
@@ -4,9 +4,9 @@ name: Lint and Test Snippets | |
# branches) | ||
|
||
on: | ||
push: | ||
branches: [$default-branch] | ||
pull_request: | ||
push: | ||
branches: [$default-branch] | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
|
@@ -15,48 +15,48 @@ jobs: | |
matrix: | ||
node-version: [18.x] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
# Select a branch on agoric-sdk to test against by adding text to the body of the | ||
# pull request. For example: #agoric-sdk-branch: zoe-release-0.7.0 | ||
# The default is 'master' | ||
- name: Get the appropriate agoric-sdk branch | ||
id: get-branch | ||
uses: actions/[email protected] | ||
with: | ||
result-encoding: string | ||
script: | | ||
const { body = '' } = context.payload.pull_request || {}; | ||
const regex = /.*\#agoric-sdk-branch:\s+(\S+)/; | ||
const match = regex.exec(body); | ||
const agoricSdkBranch = match && match[1] || 'master'; | ||
console.log(agoricSdkBranch); | ||
return agoricSdkBranch; | ||
- name: Checkout agoric-sdk | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: Agoric/agoric-sdk | ||
path: agoric-sdk | ||
ref: ${{steps.get-branch.outputs.result}} | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Setup and link agoric-sdk packages | ||
run: | | ||
yarn install | ||
yarn build | ||
yarn link-cli ~/bin/agoric | ||
echo "/home/runner/bin" >> $GITHUB_PATH | ||
working-directory: ./agoric-sdk | ||
|
||
- name: agoric install | ||
run: agoric install | ||
- name: yarn lint | ||
run: yarn lint | ||
- name: yarn test snippets | ||
run: yarn test | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
# Select a branch on agoric-sdk to test against by adding text to the body of the | ||
# pull request. For example: #agoric-sdk-branch: zoe-release-0.7.0 | ||
# The default is 'master' | ||
- name: Get the appropriate agoric-sdk branch | ||
id: get-branch | ||
uses: actions/[email protected] | ||
with: | ||
result-encoding: string | ||
script: | | ||
const { body = '' } = context.payload.pull_request || {}; | ||
const regex = /.*\#agoric-sdk-branch:\s+(\S+)/; | ||
const match = regex.exec(body); | ||
const agoricSdkBranch = match && match[1] || 'master'; | ||
console.log(agoricSdkBranch); | ||
return agoricSdkBranch; | ||
- name: Checkout agoric-sdk | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: Agoric/agoric-sdk | ||
path: agoric-sdk | ||
ref: ${{steps.get-branch.outputs.result}} | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Setup and link agoric-sdk packages | ||
run: | | ||
corepack enable | ||
yarn install | ||
yarn build | ||
echo "/home/runner/bin" >> $GITHUB_PATH | ||
working-directory: ./agoric-sdk | ||
|
||
- name: agoric install | ||
run: agoric-sdk/packages/agoric-cli/bin/agoric install | ||
- name: yarn lint | ||
run: yarn lint | ||
- name: yarn test snippets | ||
run: yarn test |
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.