Skip to content

Commit

Permalink
Merge pull request #20 from adobe/SITES-19453
Browse files Browse the repository at this point in the history
SITES-19453: Templates don't work with the latest aio cli
  • Loading branch information
irenelagno authored Jan 31, 2024
2 parents c8f0799 + 5194f7f commit 0eb4755
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/run-tests-on-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: run-tests-on-pr

defaults:
run:
shell: bash

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [18.x, 20.x]
os: [ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm i --package-lock --package-lock-only
- run: npm ci
- run: npm run build --if-present
- run: npm test
- name: upload coverage
if: success()
run: curl -s https://codecov.io/bash | bash
env:
CODECOV_NAME: ${{ runner.os }} node.js ${{ matrix.node-version }}
shell: bash
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@adobe/aem-cf-admin-ui-ext-tpl",
"version": "1.0.0-beta.24",
"version": "2.0.0",
"main": "src/index.js",
"description": "Extensibility template for AEM Content Fragment Admin Console",
"engines": {
"node": "^14 || ^16"
"node": ">=18.0.0"
},
"keywords": [
"ecosystem:aio-app-builder-templates"
Expand Down

0 comments on commit 0eb4755

Please sign in to comment.