Skip to content

Commit

Permalink
Update dependencies (#64)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
easingthemes authored Jul 11, 2024
1 parent f726838 commit b6f42e9
Show file tree
Hide file tree
Showing 9 changed files with 2,486 additions and 6,708 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": ["@adobe/eslint-config-aio-lib-config"],
"rules": {
"jsdoc/no-undefined-types": 0,
"jsdoc/no-defaults": 0,
"jsdoc/check-tag-names": [
"error",
{
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

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

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

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
6 changes: 3 additions & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [16.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm i
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/on-push-publish-to-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
- run: npm ci
- run: npm test
- uses: JS-DevTools/npm-publish@v1
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
access: 'public'
9 changes: 4 additions & 5 deletions .github/workflows/version-bump-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ jobs:
name: checkout
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: |
git config user.name github-actions
git config user.email [email protected]
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
- run: |
npm ci
npm test
Expand All @@ -35,9 +35,8 @@ jobs:
run: |
npm version ${{ github.event.inputs.level }}
git push
- uses: JS-DevTools/npm-publish@v1
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
dry-run: ${{ github.event.inputs.dryRun }}
tag: ${{ github.event.inputs.tag }}
access: 'public'
31 changes: 27 additions & 4 deletions e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@
## Requirements

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

### Example
```bash
AEM_HOST_URI=http://localhost:4502
AEM_GRAPHQL_ENDPOINT=/content/cq:graphql/wknd-shared/endpoint.json
AEM_USER=admin
AEM_PASS=admin
```
## Run

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

1. Malformed required params
2. `read` APIs
2. All APIs
- persistQuery
- listPersistedQueries
- runPersistedQuery
- runQuery

## Local AEM setup

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.
2. Start AEM
```
java -jar aem-author-p4502.jar
```
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).
4. Install downloaded Demo Content package
5. Configure ENV variables
6. Run e2e test
Loading

0 comments on commit b6f42e9

Please sign in to comment.