From 4726a99b661b96459ca904ed0e1bee4d66468c7a Mon Sep 17 00:00:00 2001 From: D050513 Date: Mon, 24 Feb 2025 10:55:26 +0100 Subject: [PATCH 1/2] chore: format yamls --- .github/dependabot.yml | 18 ++++----- .github/workflows/ci.yml | 38 +++++++++--------- .github/workflows/label-issues.yml | 2 +- .github/workflows/release.yml | 62 +++++++++++++++--------------- .github/workflows/reuse.yml | 12 +++--- 5 files changed, 66 insertions(+), 66 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index efaba84..38eb5c0 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,18 +5,18 @@ version: 2 updates: - - package-ecosystem: "npm" # See documentation for possible values - directory: "/" # Location of package manifests + - package-ecosystem: 'npm' # See documentation for possible values + directory: '/' # Location of package manifests schedule: - interval: "daily" + interval: 'daily' groups: prod-dependencies: - dependency-type: "production" + dependency-type: 'production' update-types: - - "minor" - - "patch" + - 'minor' + - 'patch' dev-dependencies: - dependency-type: "development" + dependency-type: 'development' update-types: - - "minor" - - "patch" + - 'minor' + - 'patch' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74d56bf..cc3c87b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,17 +3,17 @@ name: CI on: workflow_dispatch: push: - branches: [ main ] + branches: [main] pull_request: - branches: [ main ] + branches: [main] jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - run: npm i - - run: npm run lint + - uses: actions/checkout@v2 + - run: npm i + - run: npm run lint test: runs-on: ubuntu-latest strategy: @@ -22,17 +22,17 @@ jobs: node-version: [22.x, 20.x] cds-version: [8, 7] steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - - run: npm i -g @sap/cds-dk@${{ matrix.cds-version }} - - run: npm i - - run: npm i @sap/cds@${{ matrix.cds-version }} - - run: cds v - - run: npm run test - env: - ALS_CREDS_OAUTH2: ${{ secrets.ALS_CREDS_OAUTH2 }} - ALS_CREDS_STANDARD: ${{ secrets.ALS_CREDS_STANDARD }} - ALS_CREDS_PREMIUM: ${{ secrets.ALS_CREDS_PREMIUM }} + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + - run: npm i -g @sap/cds-dk@${{ matrix.cds-version }} + - run: npm i + - run: npm i @sap/cds@${{ matrix.cds-version }} + - run: cds v + - run: npm run test + env: + ALS_CREDS_OAUTH2: ${{ secrets.ALS_CREDS_OAUTH2 }} + ALS_CREDS_STANDARD: ${{ secrets.ALS_CREDS_STANDARD }} + ALS_CREDS_PREMIUM: ${{ secrets.ALS_CREDS_PREMIUM }} diff --git a/.github/workflows/label-issues.yml b/.github/workflows/label-issues.yml index 0788392..8800871 100644 --- a/.github/workflows/label-issues.yml +++ b/.github/workflows/label-issues.yml @@ -15,4 +15,4 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_REPO: ${{ github.repository }} NUMBER: ${{ github.event.issue.number }} - LABELS: new \ No newline at end of file + LABELS: new diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7b86084..ef1413e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,34 +11,34 @@ jobs: runs-on: ubuntu-latest environment: npm steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 18 - registry-url: https://registry.npmjs.org/ - - name: run tests - run: | - npm i -g @sap/cds-dk - npm i - npm run lint - npm run test - env: - ALS_CREDS_OAUTH2: ${{ secrets.ALS_CREDS_OAUTH2 }} - ALS_CREDS_STANDARD: ${{ secrets.ALS_CREDS_STANDARD }} - ALS_CREDS_PREMIUM: ${{ secrets.ALS_CREDS_PREMIUM }} - - name: get version - id: package-version - uses: martinbeentjes/npm-get-version-action@v1.2.3 - - name: parse changelog - id: parse-changelog - uses: schwma/parse-changelog-action@v1.0.0 - with: - version: '${{ steps.package-version.outputs.current-version }}' - - name: create a GitHub release - uses: ncipollo/release-action@v1 - with: - tag: 'v${{ steps.package-version.outputs.current-version }}' - body: '${{ steps.parse-changelog.outputs.body }}' - - run: npm publish --access public - env: - NODE_AUTH_TOKEN: ${{secrets.npm_token}} + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18 + registry-url: https://registry.npmjs.org/ + - name: run tests + run: | + npm i -g @sap/cds-dk + npm i + npm run lint + npm run test + env: + ALS_CREDS_OAUTH2: ${{ secrets.ALS_CREDS_OAUTH2 }} + ALS_CREDS_STANDARD: ${{ secrets.ALS_CREDS_STANDARD }} + ALS_CREDS_PREMIUM: ${{ secrets.ALS_CREDS_PREMIUM }} + - name: get version + id: package-version + uses: martinbeentjes/npm-get-version-action@v1.2.3 + - name: parse changelog + id: parse-changelog + uses: schwma/parse-changelog-action@v1.0.0 + with: + version: '${{ steps.package-version.outputs.current-version }}' + - name: create a GitHub release + uses: ncipollo/release-action@v1 + with: + tag: 'v${{ steps.package-version.outputs.current-version }}' + body: '${{ steps.parse-changelog.outputs.body }}' + - run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{secrets.npm_token}} diff --git a/.github/workflows/reuse.yml b/.github/workflows/reuse.yml index a92c6b9..3c1052b 100644 --- a/.github/workflows/reuse.yml +++ b/.github/workflows/reuse.yml @@ -1,15 +1,15 @@ -name: "Launch Metadata Creation Tool for REUSE" +name: 'Launch Metadata Creation Tool for REUSE' on: workflow_dispatch: ~ jobs: create_metadata_proposal: runs-on: ubuntu-latest - name: "Metadata Creation Tool" + name: 'Metadata Creation Tool' steps: - uses: SAP/metadata-creation-tool-for-reuse@main with: - repository_url: "${{ github.server_url }}/${{ github.repository }}" - access_token: "${{ secrets.REUSE_ACCESS_TOKEN }}" - copyright_owner: "SAP SE or an SAP affiliate company and contributors" - upstream_contact: "The CAP team " + repository_url: '${{ github.server_url }}/${{ github.repository }}' + access_token: '${{ secrets.REUSE_ACCESS_TOKEN }}' + copyright_owner: 'SAP SE or an SAP affiliate company and contributors' + upstream_contact: 'The CAP team ' From 24b38e6ea7b9ea9b2f00abdf6714e6953e64bf6b Mon Sep 17 00:00:00 2001 From: D050513 Date: Mon, 24 Feb 2025 11:05:18 +0100 Subject: [PATCH 2/2] .gitignore --- .gitignore | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index c6bba59..515e907 100644 --- a/.gitignore +++ b/.gitignore @@ -128,3 +128,9 @@ dist .yarn/build-state.yml .yarn/install-state.gz .pnp.* + +# custom +package-lock.json +.npmrc +.babelrc +.prettierrc.js