Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ported core packages and examples to Typecript #1265

Merged
merged 1 commit into from
Dec 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/annotated-pkgs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,22 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- uses: actions/setup-node@v4
env:
FORCE_COLOR: 0
with:
node-version: 16
node-version: 20.18.1

- name: Install yarn 3
run: npm i -g yarn

- name: Install package dependencies
run: yarn install
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false # prevents error YN0028 during build
run: |
yarn cache clean --all
yarn install

- name: Test that docusarus compiles
run: |
Expand Down
77 changes: 46 additions & 31 deletions .github/workflows/cypress-end-to-end-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ jobs:
continue-on-error: true
- uses: actions/setup-node@v4
with:
cache: "yarn"
node-version: 16
cache: yarn
node-version: 20.18.1
- uses: dorny/paths-filter@v3
id: filter
with:
Expand Down Expand Up @@ -86,12 +86,12 @@ jobs:
# - name: 🐍 Installing python
# uses: actions/setup-python@v5
# with:
# python-version: 3.8
# python-version: 3.9
#
# - name: 🪨 Setup Node
# uses: actions/setup-node@v4
# with:
# node-version: 16.16.0
# node-version: 20.18.1
#
# - name: 🤖 Install Mephisto
# run: pip install -e .
Expand Down Expand Up @@ -139,12 +139,12 @@ jobs:
# - name: 🐍 Installing python
# uses: actions/setup-python@v5
# with:
# python-version: 3.8
# python-version: 3.9
#
# - name: 🪨 Setup Node
# uses: actions/setup-node@v4
# with:
# node-version: 16.16.0
# node-version: 20.18.1
#
# - name: 🤖 Install Mephisto
# run: pip install -e .
Expand Down Expand Up @@ -193,12 +193,12 @@ jobs:
- name: 🐍 Installing python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9

- name: 🪨 Setup Node
uses: actions/setup-node@v4
with:
node-version: 16.16.0
node-version: 20.18.1

- name: 🤖 Install Mephisto
run: pip install -e .
Expand All @@ -213,8 +213,11 @@ jobs:
run: mephisto register inhouse

- name: 📦 Setting up mephisto-core package
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false # prevents error YN0028 during build
run: |
cd packages/mephisto-core
yarn cache clean --all
yarn install
yarn build
npm link
Expand Down Expand Up @@ -243,12 +246,12 @@ jobs:
- name: 🐍 Installing python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9

- name: 🪨 Setup Node
uses: actions/setup-node@v4
with:
node-version: 16.16.0
node-version: 20.18.1

- name: 🤖 Install Mephisto
run: pip install -e .
Expand All @@ -263,8 +266,11 @@ jobs:
run: mephisto register inhouse

- name: 📦 Setting up mephisto-core package
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false # prevents error YN0028 during build
run: |
cd packages/mephisto-core
yarn cache clean --all
yarn install
yarn build
npm link
Expand Down Expand Up @@ -293,12 +299,12 @@ jobs:
- name: 🐍 Installing python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9

- name: 🪨 Setup Node
uses: actions/setup-node@v4
with:
node-version: 16.16.0
node-version: 20.18.1

- name: 🤖 Install Mephisto
run: pip install -e .
Expand All @@ -313,8 +319,11 @@ jobs:
run: mephisto register inhouse

- name: 📦 Setting up mephisto-core package
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false # prevents error YN0028 during build
run: |
cd packages/mephisto-core
yarn cache clean --all
yarn install
yarn build
npm link
Expand Down Expand Up @@ -343,12 +352,12 @@ jobs:
# - name: 🐍 Installing python
# uses: actions/setup-python@v5
# with:
# python-version: 3.8
# python-version: 3.9
#
# - name: 🪨 Setup Node
# uses: actions/setup-node@v4
# with:
# node-version: 16.16.0
# node-version: 20.18.1
#
# - name: 🤖 Install Mephisto
# run: pip install -e .
Expand Down Expand Up @@ -396,12 +405,12 @@ jobs:
- name: 🐍 Installing python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9

- name: 🪨 Setup Node
uses: actions/setup-node@v4
with:
node-version: 16.16.0
node-version: 20.18.1

- name: 🤖 Install Mephisto
run: |
Expand All @@ -418,8 +427,11 @@ jobs:
run: mephisto register inhouse

- name: 📦 Setting up mephisto-core package
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false # prevents error YN0028 during build
run: |
cd packages/mephisto-core
yarn cache clean --all
yarn install
yarn build
npm link
Expand Down Expand Up @@ -447,12 +459,12 @@ jobs:
- name: 🐍 Installing python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9

- name: 🪨 Setup Node
uses: actions/setup-node@v4
with:
node-version: 16.16.0
node-version: 20.18.1

- name: 🤖 Install Mephisto
run: |
Expand All @@ -469,8 +481,11 @@ jobs:
run: mephisto register inhouse

- name: 📦 Setting up mephisto-core package
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false # prevents error YN0028 during build
run: |
cd packages/mephisto-core
yarn cache clean --all
yarn install
yarn build
npm link
Expand All @@ -495,15 +510,16 @@ jobs:
steps:
- name: 🔀 Checking out repo
uses: actions/checkout@v2

- name: 🐍 Installing python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9

- name: 🪨 Setup Node
uses: actions/setup-node@v4
with:
node-version: 16.16.0
node-version: 20.18.1

- name: 🤖 Install Mephisto
run: |
Expand All @@ -520,15 +536,21 @@ jobs:
run: mephisto register inhouse

- name: 📦 Setting up mephisto-core package
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false # prevents error YN0028 during build
run: |
cd packages/mephisto-core
yarn cache clean --all
yarn install
yarn build
npm link

- name: 📦 Setting up mephisto-addons package
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false # prevents error YN0028 during build
run: |
cd packages/mephisto-addons
yarn cache clean --all
yarn install
yarn build
npm link
Expand All @@ -548,17 +570,10 @@ jobs:

- name: 🔪 Killing the web server
run: |
lsof -nPi :3000
lsof -i -P -n | grep LISTEN | grep python | awk '{print $2}'
kill -INT $(lsof -i -P -n | grep LISTEN | grep python | awk '{print $2}')
echo "killed 1"
sleep 0.5
kill -INT $(lsof -i -P -n | grep LISTEN | grep python | awk '{print $2}')
echo "killed 2"
lsof -i -P -n | grep LISTEN | grep node | awk '{print $2}'
kill -INT $(lsof -i -P -n | grep LISTEN | grep node | awk '{print $2}')
sleep 30
echo "30 seconds passed"
sudo apt install procps -y # Installing `pkill`
sudo pkill -9 python
sudo pkill -9 node
echo "Web server killed"

- name: 🥛 Expiring units
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:
env:
FORCE_COLOR: 0
with:
node-version: 16.16.0
cache: yarn
node-version: 20.18.1
- uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9
- name: 🤖 Install Mephisto
run: |
cd ../../
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/npm-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9
- name: Install Mephisto
run: pip install -e .
- name: Run version sync script
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9
- uses: pre-commit/action@v3.0.1
2 changes: 1 addition & 1 deletion .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
python-version: [3.9]

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
with:
node-version: 16.16.0
cache: yarn
node-version: 20.18.1
- uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9

- name: 🤖 Install Mephisto
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/version-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9
- name: Install Mephisto
run: pip install -e .
- name: Run version sync script
Expand Down
17 changes: 9 additions & 8 deletions .yarn/releases/yarn-3.2.4.cjs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ initFields:

initScope: annotated

nodeLinker: node-modules

packageExtensions:
"@docusaurus/core@*":
dependencies:
Expand Down
Loading
Loading