Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
* text=auto eol=lf
pnpm-lock.yaml eol=lf merge=ours
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 2
updates:
- package-ecosystem: npm
- package-ecosystem: pnpm
directory: "/"
schedule:
interval: monthly
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [14.x]
node-version: [18.x, 20.x]
runs-on: ${{ matrix.os }}


Expand All @@ -19,9 +19,7 @@ jobs:
uses: actions/checkout@v3

- name: Run install
uses: borales/actions-yarn@v4
with:
cmd: install # will run `yarn install` command
run: pnpm install

- name: Download latest released artifact
uses: robinraju/release-downloader@v1.7
Expand All @@ -44,7 +42,7 @@ jobs:
run:
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc

# To help debug when lerna detects changes to the working tree and fails the publish
# To help debug when pnpm detects changes to the working tree and fails the publish
- name: Status
run: git status

Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI/CD Pipeline

on:
push:
branches: [master]

Check warning on line 5 in .github/workflows/pipeline.yml

View check run for this annotation

In Solidarity / Inclusive Language

Match Found

Please consider an alternative to `master`. Possibilities include: `primary`, `main`, `leader`, `active`, `writer`
Raw output
/\b(?!masterdata|masterdata\w+\b)master/gi
pull_request:
branches: [master]

Check warning on line 7 in .github/workflows/pipeline.yml

View check run for this annotation

In Solidarity / Inclusive Language

Match Found

Please consider an alternative to `master`. Possibilities include: `primary`, `main`, `leader`, `active`, `writer`
Raw output
/\b(?!masterdata|masterdata\w+\b)master/gi

env:
GHR_PROJECT_REPONAME: ui5-language-assistant
GHR_PROJECT_USERNAME: SAP

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [18.x, 20.x]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
35 changes: 21 additions & 14 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Release workflow

on:
push:
branches: [master]
branches: [feat/pnpm]
pull_request:
branches: [master]
branches: [feat/pnpm]

env:
GHR_PROJECT_REPONAME: ui5-language-assistant
Expand All @@ -15,21 +15,30 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [14.x, 16.x, 18.x]
node-version: [18.x]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # will fetch all history
- name: Run install
uses: borales/actions-yarn@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
cmd: install # will run `yarn install` command
- name: Run build
uses: borales/actions-yarn@v4
run_install: true
- name: Cache pnpm modules
uses: actions/cache@v4
env:
cache-name: cache-pnpm-modules
with:
cmd: ci # will run `yarn run ci` command
path: ~/.pnpm-store
key: ${{ matrix.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ matrix.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-
- name: Install pnpm modules
run: pnpm install
- name: Run build
run: pnpm ci

- name: Run SonarCloud scan
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '14.x'
Expand Down Expand Up @@ -62,7 +71,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [14.x]
node-version: [18.x, 20.x]
runs-on: ${{ matrix.os }}
needs: [build, compliance]
outputs:
Expand All @@ -75,10 +84,8 @@ jobs:
fetch-depth: 0
token: ${{ secrets.ACCESS_PAT }} # needed to auto trigger release job

- name: Run install
uses: borales/actions-yarn@v4
with:
cmd: install # will run `yarn install` command
- name: Install pnpm modules
run: pnpm install

- name: Apply changesets
id: changesetVersion
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,6 @@ test-packages/test-utils/.model-cache
# Test reports
junit-report.xml
test-report.xml

# Ignore nx
.nx
12 changes: 0 additions & 12 deletions .mocharc.js

This file was deleted.

Loading
Loading