Skip to content

Commit

Permalink
chore: upgrade Yarn v1 to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Aug 22, 2024
1 parent 6ef2085 commit ee0385e
Show file tree
Hide file tree
Showing 9 changed files with 8,831 additions and 153,149 deletions.
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".*'
1 change: 1 addition & 0 deletions .github/workflows/test-getting-started.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- name: Install dependencies
run: |
cd demo
corepack enable
yarn install
- name: Start the Docker container
run: |
Expand Down
97 changes: 49 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,49 @@ 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
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
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 ee0385e

Please sign in to comment.