Skip to content

Commit b6f42e9

Browse files
authored
Update dependencies (#64)
* feat: update dependencies to latest major version BREAKING CHANGE: update support to current NodeJS LTS (>=v20.0.0) * docs: Add docs for simple AEM setup for e2e tests * feat: Update GH Actions plugins to latest * BREAKING CHANGE: Update version to next major
1 parent f726838 commit b6f42e9

File tree

9 files changed

+2486
-6708
lines changed

9 files changed

+2486
-6708
lines changed

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"extends": ["@adobe/eslint-config-aio-lib-config"],
33
"rules": {
44
"jsdoc/no-undefined-types": 0,
5+
"jsdoc/no-defaults": 0,
56
"jsdoc/check-tag-names": [
67
"error",
78
{

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ jobs:
3535

3636
steps:
3737
- name: Checkout repository
38-
uses: actions/checkout@v3
38+
uses: actions/checkout@v4
3939

4040
# Initializes the CodeQL tools for scanning.
4141
- name: Initialize CodeQL
42-
uses: github/codeql-action/init@v2
42+
uses: github/codeql-action/init@v3
4343
with:
4444
languages: ${{ matrix.language }}
4545
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -50,7 +50,7 @@ jobs:
5050
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5151
# If this step fails, then you should remove it and run the build manually (see below)
5252
- name: Autobuild
53-
uses: github/codeql-action/autobuild@v2
53+
uses: github/codeql-action/autobuild@v3
5454

5555
# ℹ️ Command-line programs to run using the OS shell.
5656
# 📚 https://git.io/JvXDl
@@ -64,4 +64,4 @@ jobs:
6464
# make release
6565

6666
- name: Perform CodeQL Analysis
67-
uses: github/codeql-action/analyze@v2
67+
uses: github/codeql-action/analyze@v3

.github/workflows/nodejs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ubuntu-latest]
17-
node-version: [16.x]
17+
node-version: [20.x]
1818

1919
steps:
20-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
2121
- name: Use Node.js ${{ matrix.node-version }}
22-
uses: actions/setup-node@v3
22+
uses: actions/setup-node@v4
2323
with:
2424
node-version: ${{ matrix.node-version }}
2525
- run: npm i

.github/workflows/on-push-publish-to-npm.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@ jobs:
99
publish:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
13-
- uses: actions/setup-node@v3
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
1414
with:
15-
node-version: 16
15+
node-version: 20
1616
- run: npm ci
1717
- run: npm test
18-
- uses: JS-DevTools/npm-publish@v1
18+
- uses: JS-DevTools/npm-publish@v3
1919
with:
2020
token: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
21-
access: 'public'

.github/workflows/version-bump-publish.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ jobs:
2020
name: checkout
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
- run: |
2525
git config user.name github-actions
2626
git config user.email [email protected]
27-
- uses: actions/setup-node@v3
27+
- uses: actions/setup-node@v4
2828
with:
29-
node-version: 16
29+
node-version: 20
3030
- run: |
3131
npm ci
3232
npm test
@@ -35,9 +35,8 @@ jobs:
3535
run: |
3636
npm version ${{ github.event.inputs.level }}
3737
git push
38-
- uses: JS-DevTools/npm-publish@v1
38+
- uses: JS-DevTools/npm-publish@v3
3939
with:
4040
token: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
4141
dry-run: ${{ github.event.inputs.dryRun }}
4242
tag: ${{ github.event.inputs.tag }}
43-
access: 'public'

e2e/README.md

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,17 @@
33
## Requirements
44

55
To run the e2e test you'll need these env variables set:
6-
1. `AEM_HOST_URI` - default 'http://localhost:4502'
7-
2. `AEM_GRAPHQL_ENDPOINT` - default `content/graphql/global/endpoint.json`
8-
3. `AEM_TOKEN` (or `AEM_USER` and `AEM_PASS`) - default `AEM_USER=admin` and `AEM_PASS=admin`
6+
1. `AEM_HOST_URI`
7+
2. `AEM_GRAPHQL_ENDPOINT` (if different from default `content/graphql/endpoint.gql`)
8+
3. `AEM_TOKEN` (or `AEM_USER` and `AEM_PASS`)
99

10+
### Example
11+
```bash
12+
AEM_HOST_URI=http://localhost:4502
13+
AEM_GRAPHQL_ENDPOINT=/content/cq:graphql/wknd-shared/endpoint.json
14+
AEM_USER=admin
15+
AEM_PASS=admin
16+
```
1017
## Run
1118

1219
`npm run e2e`
@@ -16,4 +23,20 @@ To run the e2e test you'll need these env variables set:
1623
The tests cover:
1724

1825
1. Malformed required params
19-
2. `read` APIs
26+
2. All APIs
27+
- persistQuery
28+
- listPersistedQueries
29+
- runPersistedQuery
30+
- runQuery
31+
32+
## Local AEM setup
33+
34+
1. Navigate to the [Software Distribution Portal](https://experience.adobe.com/#/downloads/content/software-distribution/en/aemcloud.html?fulltext=AEM*+SDK*&orderby=%40jcr%3Acontent%2Fjcr%3AlastModified&orderby.sort=desc&layout=list&p.offset=0&p.limit=1) > AEM as a Cloud Service and download the latest version of the AEM SDK.
35+
2. Start AEM
36+
```
37+
java -jar aem-author-p4502.jar
38+
```
39+
3. Download the latest compiled AEM Package for WKND Site: [aem-guides-wknd.all-x.x.x.zip](https://github.com/adobe/aem-guides-wknd/releases/latest).
40+
4. Install downloaded Demo Content package
41+
5. Configure ENV variables
42+
6. Run e2e test

0 commit comments

Comments
 (0)