-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: rewrite the Zoe introduction (#311)
* chore: rewrite the Zoe introduction * refactor: move code examples into snippets, add testing for snippets * test: add testing of code snippets to CI * chore: just test snippets on node 14. Heavy testing done in agoric-sdk * chore: add to wordlist * chore: add an empty agstate to allow us to use `agoric install` * chore: add information about code snippets to CONTRIBUTING.md. * chore: add words to wordlist * chore: address some PR comments * chore: address PR comments * chore: address PR comments * chore: try fixing spellchecker * chore: try fixing spellchecker again * chore: more spellchecker fixes * test only: skip div - should not catch anything * test only - skip div, should not catch anything * Update main/getting-started/intro-zoe.md Co-authored-by: Tom Galloway <[email protected]> * Update main/getting-started/intro-zoe.md Co-authored-by: Tom Galloway <[email protected]> * chore: address PR comments (somehow lost, after being committed from Github interface_ * Apply suggestions from code review Co-authored-by: Tom Galloway <[email protected]> * chore: address PR comments * chore: remove spellchecker for now Co-authored-by: Tom Galloway <[email protected]>
- Loading branch information
1 parent
8abe577
commit 1893114
Showing
13 changed files
with
2,743 additions
and
442 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Lint and Test Snippets | ||
|
||
# run CI on pushes to master, and on all PRs (even the ones that target other | ||
# branches) | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [14.x] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
# 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@v2 | ||
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@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Setup and link agoric-sdk packages | ||
run: | | ||
yarn install | ||
yarn build | ||
yarn link-cli ~/bin/agoric | ||
echo "::add-path::/home/runner/bin" | ||
working-directory: ./agoric-sdk | ||
|
||
- name: agoric install | ||
run: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
node_modules/ | ||
dist/ | ||
.DS_Store | ||
.DS_Store | ||
_agstate |
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
Empty file.
Oops, something went wrong.