-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
57 changed files
with
24,044 additions
and
18,124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
# EditorConfig is awesome: http://EditorConfig.org | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_style = space | ||
indent_size = 4 | ||
indent_size = 2 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
[*.{yml,yaml,md,js}] | ||
indent_size = 2 | ||
|
||
[*.png] | ||
indent_style = none | ||
indent_size = none | ||
|
||
[LICENSE] | ||
indent_style = none | ||
indent_size = none |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
env: | ||
browser: true | ||
node: true | ||
es6: true | ||
jest: true | ||
extends: | ||
- standard-with-typescript | ||
- plugin:n/recommended | ||
plugins: | ||
- jest | ||
- n | ||
globals: | ||
Atomics: readonly | ||
SharedArrayBuffer: readonly | ||
parserOptions: | ||
ecmaVersion: 2018 | ||
project: ./tsconfig.eslint.json | ||
rules: | ||
no-console: error | ||
n/no-unsupported-features/es-syntax: [error, ignores: [modules]] | ||
n/no-missing-import: off | ||
ignorePatterns: | ||
- dist/*.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
dist/*.js linguist-generated=true | ||
dist/*.map linguist-generated=true | ||
dist/*.txt linguist-generated=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
## Developer Certificate of Origin (DCO) | ||
# Developer Certificate of Origin (DCO) | ||
|
||
Due to legal reasons, contributors will be asked to accept a DCO before they submit the first pull request to this projects, this happens in an automated fashion during the submission process. SAP uses [the standard DCO text of the Linux Foundation](https://developercertificate.org/). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Developer's documentation | ||
|
||
This page is only relevant for you if you're working on project "piper" itself. | ||
|
||
To build a development version of piper from source, use: | ||
|
||
```yaml | ||
env "INPUT_PIPER-VERSION=devel:SAP:jenkins-library:mycommitorbranch" | ||
``` | ||
|
||
Concrete example: | ||
|
||
```yaml | ||
env "INPUT_PIPER-VERSION=devel:SAP:jenkins-library:b0144614e529018f661152769b5543243e6bf033" INPUT_COMMAND=version INPUT_FLAGS='-v' node index.js | ||
``` | ||
|
||
## Development Setup | ||
|
||
❗This part needs to be updated, it might not work exactly as described | ||
|
||
First, install the dependencies and build the distributable: | ||
|
||
```bash | ||
npm install | ||
npm run prepare | ||
``` | ||
|
||
You'll get a distributable file in `dest`. | ||
Make sure the distributable is up-to-date before you push. | ||
|
||
To try it out locally, you may use Docker: | ||
|
||
```bash | ||
docker build . -f DevEnv.Dockerfile -t project-piper-action | ||
docker run -it --rm project-piper-action bash | ||
$ node index.js | ||
``` | ||
|
||
For convinience those steps are wrapped into `startDevEnv.sh`. | ||
|
||
To provide _inputs_, you may set environment variables with the right names as in this example: | ||
|
||
```bash | ||
INPUT_STEP_NAME=version INPUT_FLAGS='-v' node index.js | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
blank_issues_enabled: false |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"packageRules": [ | ||
{ | ||
"matchDepTypes": ["devDependencies"], | ||
"automerge": true, | ||
"platformAutomerge": true | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: "Documentation" | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- '**/*.md' | ||
|
||
jobs: | ||
markdownlint: | ||
runs-on: ubuntu-latest | ||
name: 'Markdown Format' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- run: npm install --global markdownlint-cli | ||
- run: markdownlint --disable MD013 -- . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Publish Log4brains | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'docs/adr/**' | ||
- '.github/workflows/publish-log4brains.yml' | ||
- '.log4brains.yml' | ||
jobs: | ||
build-and-publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false # required by JamesIves/github-pages-deploy-action | ||
fetch-depth: 0 # required by Log4brains to work correctly (needs the whole Git history) | ||
- name: Install Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- name: Install and Build Log4brains | ||
run: | | ||
npm install --global log4brains | ||
log4brains build --basePath /${GITHUB_REPOSITORY} | ||
- name: Deploy | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: gh-pages | ||
FOLDER: .log4brains/out | ||
TARGET_FOLDER: log4brains |
Oops, something went wrong.