Skip to content

Commit

Permalink
Use Fixed backend test.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamTV12345 committed Mar 16, 2024
1 parent d0cd301 commit d2ce3e3
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 21 deletions.
42 changes: 25 additions & 17 deletions .github/workflows/backend-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,7 @@ jobs:
uses: actions/checkout@v3
with:
repository: ether/etherpad-lite
-
name: Checkout plugin repository
uses: actions/checkout@v3
with:
path: ./node_modules/__tmp
-
name: Determine plugin name
id: plugin_name
run: |
cd ./node_modules/__tmp
npx -c 'printf %s\\n "::set-output name=plugin_name::${npm_package_name}"'
-
name: Rename plugin directory
run: |
mv ./node_modules/__tmp ./node_modules/"${PLUGIN_NAME}"
env:
PLUGIN_NAME: ${{ steps.plugin_name.outputs.plugin_name }}
path: etherpad-lite
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
Expand All @@ -57,6 +41,30 @@ jobs:
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
-
name: Checkout plugin repository
uses: actions/checkout@v3
with:
path: plugin
-
name: Determine plugin name
id: plugin_name
run: |
cd ./plugin
echo "::set-output name=plugin_name::$(node -p "require('./package.json').name")"
-
name: Rename plugin directory
run: |
pnpm link --global
env:
PLUGIN_NAME: ${{ steps.plugin_name.outputs.plugin_name }}
- name: Link plugin to etherpad-lite
working-directory: ./etherpad-lite
run: |
pnpm link --global $PLUGIN_NAME
- name: Remove tests
working-directory: ./etherpad-lite
run: rm -rf ./src/tests
-
name: Install Etherpad core dependencies
run: bin/installDeps.sh
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/frontend-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8
run_install: false
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8
run_install: false
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
Expand Down

0 comments on commit d2ce3e3

Please sign in to comment.