Skip to content

Commit

Permalink
Merge pull request #912 from Agoric/ta/yarn-4
Browse files Browse the repository at this point in the history
upgrade to Yarn 4
  • Loading branch information
turadg authored Aug 22, 2024
2 parents 1b8729a + 27b7c08 commit 8fa8208
Show file tree
Hide file tree
Showing 19 changed files with 9,159 additions and 153,211 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/cf-logs-fetcher.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
name: CF Deployment Logs
on:
issue_comment:
issue_comment:
types: [created, edited]
jobs:
fetch_comment_log:
if: ${{ (github.event.issue.pull_request) && (github.event.comment.user.login == 'cloudflare-pages[bot]' ) }}
runs-on: [ubuntu-latest]
steps:

- name: Fetch & Print The Deployment Logs
uses: agoric-labs/cf-logs-fetcher@v2
with:
cf_account_id: "0c4635effffcd7f36d1b9f0425a4367a"
cf_project: "documentation"
with:
cf_account_id: '0c4635effffcd7f36d1b9f0425a4367a'
cf_project: 'documentation'
cf_token: ${{ secrets.CLOUDFLARE_API_TOKEN }}

- name: Comment PR
uses: thollander/actions-comment-pull-request@v2
with:
Expand Down
39 changes: 20 additions & 19 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ name: Test the build
# branches)

on:
push:
branches: [$default-branch]
pull_request:
push:
branches: [$default-branch]
pull_request:

jobs:
build:
Expand All @@ -15,21 +15,22 @@ jobs:
matrix:
node-version: [18.x]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install, Build, Check Links
run: |
yarn install
yarn docs:build
- name: HTML5 Validator
uses: Cyb3r-Jak3/html5validator-action@master
with:
root: main/.vitepress/dist
extra: --ignore_re r'\ADuplicate ID "outbound-link-title".*'
- name: Install, Build, Check Links
run: |
corepack enable
yarn install
yarn docs:build
- name: HTML5 Validator
uses: Cyb3r-Jak3/html5validator-action@master
with:
root: main/.vitepress/dist
extra: --ignore_re r'\ADuplicate ID "outbound-link-title".*'
17 changes: 9 additions & 8 deletions .github/workflows/test-getting-started.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,30 @@ name: Test the getting start steps
# run CI on pushes to main, and on all PRs.

on:
push:
branches: [main]
pull_request:
branches: [main]
push:
branches: [main]
pull_request:
branches: [main]
jobs:
getting_started:
runs-on: ubuntu-latest
steps:
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: "18"
node-version: '18'
- name: Creating Your Dapp From a Template
run: yarn create @agoric/dapp demo
- name: Install dependencies
run: |
run: |
cd demo
corepack enable
yarn install
- name: Start the Docker container
run: |
run: |
cd demo
yarn start:docker
- name: Wait for Docker container to be ready
- name: Wait for Docker container to be ready
run: |
cd demo
yarn runWaitForBlocks
Expand Down
96 changes: 48 additions & 48 deletions .github/workflows/test-snippets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,12 @@ dist/
_agstate
mlc-config.json
main/.vitepress/cache/

# https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
Loading

0 comments on commit 8fa8208

Please sign in to comment.