-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into SUMO-5293-add-ts-morph
- Loading branch information
Showing
7 changed files
with
209 additions
and
8 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,42 @@ | ||
on: | ||
workflow_call: | ||
secrets: | ||
JSTEST_PRIVATE_SSH_KEY: | ||
description: 'Private key to access the jstest repo' | ||
required: true | ||
|
||
jobs: | ||
jstest: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: "./packages/pages" | ||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/[email protected] | ||
|
||
- name: Build with NodeJS 18 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: "pnpm" | ||
|
||
- name: Install deps | ||
run: pnpm i | ||
|
||
- name: Pack | ||
run: pnpm pack --pack-destination latest | ||
|
||
- name: Checkout JSTEST | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: "main" | ||
repository: yext/jstest | ||
ssh-key: ${{ secrets.JSTEST_PRIVATE_SSH_KEY }} | ||
path: jstest | ||
|
||
- name: Install and test Pages | ||
run: $GITHUB_WORKSPACE/scripts/install_and_test.sh $GITHUB_WORKSPACE |
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 |
---|---|---|
|
@@ -5,6 +5,8 @@ node_modules/ | |
.npm/ | ||
.eslintcache | ||
storybook-static | ||
jstest | ||
packages/pages/latest | ||
|
||
# Logs | ||
logs | ||
|
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
cd $1/jstest/sdks | ||
|
||
for D in ./*; do | ||
if [ -d "$D" ]; then | ||
cd "$D" | ||
npm i && npx playwright install \ | ||
&& npm install @yext/pages $1/packages/pages/latest/* \ | ||
&& npm run test | ||
cd .. | ||
fi | ||
done |