Merge branch 'develop'

This commit is contained in:
SamTV12345 2024-08-08 22:52:13 +02:00
commit 54f15ce4cc
10 changed files with 39 additions and 18 deletions

View file

@ -49,6 +49,13 @@ jobs:
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: | restore-keys: |
${{ runner.os }}-pnpm-store- ${{ runner.os }}-pnpm-store-
- name: Cache playwright binaries
uses: actions/cache@v3
id: playwright-cache
with:
path: |
~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}
- name: Only install direct dependencies - name: Only install direct dependencies
run: pnpm config set auto-install-peers false run: pnpm config set auto-install-peers false
#- #-

View file

@ -56,6 +56,13 @@ jobs:
- -
name: Create settings.json name: Create settings.json
run: cp ./src/tests/settings.json settings.json run: cp ./src/tests/settings.json settings.json
- name: Cache playwright binaries
uses: actions/cache@v3
id: playwright-cache
with:
path: |
~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}
- name: Run the frontend tests - name: Run the frontend tests
shell: bash shell: bash
run: | run: |
@ -119,6 +126,13 @@ jobs:
run: echo "::set-output name=sha_short::$(git rev-parse --short ${{ github.sha }})" run: echo "::set-output name=sha_short::$(git rev-parse --short ${{ github.sha }})"
- name: Create settings.json - name: Create settings.json
run: cp ./src/tests/settings.json settings.json run: cp ./src/tests/settings.json settings.json
- name: Cache playwright binaries
uses: actions/cache@v3
id: playwright-cache
with:
path: |
~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}
- name: Run the frontend tests - name: Run the frontend tests
shell: bash shell: bash
run: | run: |
@ -160,6 +174,13 @@ jobs:
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: 22 node-version: 22
- name: Cache playwright binaries
uses: actions/cache@v3
id: playwright-cache
with:
path: |
~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}
- uses: pnpm/action-setup@v4 - uses: pnpm/action-setup@v4
name: Install pnpm name: Install pnpm
with: with:

View file

@ -60,10 +60,11 @@ jobs:
- -
name: Run the backend tests name: Run the backend tests
shell: msys2 {0} shell: msys2 {0}
run: cd src && pnpm test working-directory: src
run: pnpm test
- -
name: Run Etherpad name: Run Etherpad
working-directory: etherpad/src working-directory: src
run: | run: |
pnpm i pnpm i
pnpm exec playwright install --with-deps pnpm exec playwright install --with-deps
@ -72,16 +73,10 @@ jobs:
pnpm exec playwright install chromium --with-deps pnpm exec playwright install chromium --with-deps
pnpm run test-ui --project=chromium pnpm run test-ui --project=chromium
# On release, create release # On release, create release
-
name: Rename to etherpad-lite-win.zip
shell: powershell
run: mv etherpad-win.zip etherpad-lite-win.zip
- name: Generate Changelog - name: Generate Changelog
if: ${{startsWith(github.ref, 'refs/tags/v') }} if: ${{startsWith(github.ref, 'refs/tags/v') }}
working-directory: bin working-directory: bin
run: pnpm run generateChangelog ${{ github.ref }} > ${{ github.workspace }}-CHANGELOG.txt run: pnpm run generateChangelog ${{ github.ref }} > ${{ github.workspace }}-CHANGELOG.txt
with:
tag: ${{ github.ref }}
- name: Release - name: Release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
if: ${{startsWith(github.ref, 'refs/tags/v') }} if: ${{startsWith(github.ref, 'refs/tags/v') }}

View file

@ -1,4 +1,4 @@
# 2.2.0 # 2.2.1
### Notable enhancements and fixes ### Notable enhancements and fixes

View file

@ -1,7 +1,7 @@
{ {
"name": "admin", "name": "admin",
"private": true, "private": true,
"version": "2.2.0", "version": "2.2.1",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",

View file

@ -14,8 +14,6 @@ if (!tagVar) {
process.exit(1) process.exit(1)
} }
console.log("Tag",tagVar)
tagVar = tagVar.replace("refs/tags/v", "") tagVar = tagVar.replace("refs/tags/v", "")
let startNum = -1 let startNum = -1
@ -38,4 +36,4 @@ for (const line of changelogLines) {
} }
let currentReleaseNotes = changelogLines.slice(startNum, endline).join('\n') let currentReleaseNotes = changelogLines.slice(startNum, endline).join('\n')
console.log("Generated changelog",currentReleaseNotes) console.log(currentReleaseNotes)

View file

@ -1,6 +1,6 @@
{ {
"name": "bin", "name": "bin",
"version": "2.2.0", "version": "2.2.1",
"description": "", "description": "",
"main": "checkAllPads.js", "main": "checkAllPads.js",
"directories": { "directories": {

View file

@ -49,6 +49,6 @@
"type": "git", "type": "git",
"url": "https://github.com/ether/etherpad-lite.git" "url": "https://github.com/ether/etherpad-lite.git"
}, },
"version": "2.2.0", "version": "2.2.1",
"license": "Apache-2.0" "license": "Apache-2.0"
} }

View file

@ -107,7 +107,7 @@ const convertTypescript = (content: string) => {
return { return {
output, output,
hash: outputRaw.outputFiles[0].hash.replaceAll('/','2') hash: outputRaw.outputFiles[0].hash.replaceAll('/','2').replaceAll("+",'5').replaceAll("^","7")
} }
} }
@ -238,7 +238,7 @@ const convertTypescriptWatched = (content: string, cb: (output:string, hash: str
}).then((outputRaw) => { }).then((outputRaw) => {
cb( cb(
outputRaw.outputFiles[0].text, outputRaw.outputFiles[0].text,
outputRaw.outputFiles[0].hash.replaceAll('/','2') outputRaw.outputFiles[0].hash.replaceAll('/','2').replaceAll("+",'5').replaceAll("^","7")
) )
}) })
} }

View file

@ -134,6 +134,6 @@
"test-admin:ui": "cross-env NODE_ENV=production npx playwright test tests/frontend-new/admin-spec --ui --workers 1", "test-admin:ui": "cross-env NODE_ENV=production npx playwright test tests/frontend-new/admin-spec --ui --workers 1",
"debug:socketio": "cross-env DEBUG=socket.io* node --require tsx/cjs node/server.ts" "debug:socketio": "cross-env DEBUG=socket.io* node --require tsx/cjs node/server.ts"
}, },
"version": "2.2.0", "version": "2.2.1",
"license": "Apache-2.0" "license": "Apache-2.0"
} }