Skip to content

Commit 6cb53fb

Browse files
committed
feat: Initial commit
Signed-off-by: Tomas Coufal <tcoufal@redhat.com>
0 parents  commit 6cb53fb

28 files changed

Lines changed: 26064 additions & 0 deletions

.aicoe-ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
check: []
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
labels: kind/bug
5+
---
6+
7+
**Describe the bug**
8+
A clear and concise description of what the bug is.
9+
10+
**To Reproduce**
11+
Steps to reproduce the behavior:
12+
1. Go to '...'
13+
2. Click on '....'
14+
3. Scroll down to '....'
15+
4. See error
16+
17+
**Expected behavior**
18+
A clear and concise description of what you expected to happen.
19+
20+
**Screenshots**
21+
If applicable, add screenshots to help explain your problem.
22+
23+
**Additional context**
24+
Add any other context about the problem here.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
labels: kind/feature
5+
---
6+
7+
**Is your feature request related to a problem? Please describe.**
8+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
9+
10+
**Describe the solution you'd like**
11+
A clear and concise description of what you want to happen.
12+
13+
**Describe alternatives you've considered**
14+
A clear and concise description of any alternative solutions or features you've considered.
15+
16+
**Additional context**
17+
Add any other context or screenshots about the feature request here.

.github/ISSUE_TEMPLATE/release.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: Trigger a new release
3+
about: "⚠ Maintainers only. Schedule repo for a semantic release."
4+
title: New semantic release
5+
labels: kind/release, bot
6+
---
7+
8+
Create a new release, please.

.github/ISSUE_TEMPLATE/security.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Report vulnerability
3+
about: There's a security problem that requires our immediate attention
4+
labels: kind/security
5+
---
6+
7+
**Describe how is our service vulnerable**
8+
A clear and concise description of what the problem is.
9+
10+
**Describe the solution you'd like**
11+
A clear and concise description of what you want to happen.
12+
13+
**Describe alternatives you've considered**
14+
A clear and concise description of any alternative solutions or features you've considered.
15+
16+
**Additional context**
17+
Add any other context or screenshots about the feature request here.

.github/actions/build/action.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build all packages
2+
description: Build all packages
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: Read Node.js version
7+
id: node_version
8+
uses: juliangruber/read-file-action@v1
9+
with:
10+
path: ./.nvmrc
11+
12+
- name: Setup Node.js
13+
uses: actions/setup-node@v3
14+
with:
15+
node-version: "${{ steps.node_version.outputs.content }}"
16+
17+
- name: Cache Node.js modules
18+
uses: actions/cache@v3
19+
with:
20+
path: ~/.npm
21+
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
22+
restore-keys: |
23+
${{ runner.OS }}-node-
24+
25+
- name: Install dependencies
26+
shell: bash
27+
run: npm ci
28+
29+
- name: Build all packages
30+
shell: bash
31+
run: npm run build --workspaces

.github/actions/test/action.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Test
2+
description: Test Node.js package
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: Read Node.js version
7+
id: node_version
8+
uses: juliangruber/read-file-action@v1
9+
with:
10+
path: ./.nvmrc
11+
12+
- name: Setup Node.js
13+
uses: actions/setup-node@v3
14+
with:
15+
node-version: "${{ steps.node_version.outputs.content }}"
16+
17+
- name: Cache Node.js modules
18+
uses: actions/cache@v3
19+
with:
20+
path: ~/.npm
21+
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
22+
restore-keys: |
23+
${{ runner.OS }}-node-
24+
25+
- name: Install dependencies
26+
shell: bash
27+
run: npm ci
28+
29+
- name: Run tests
30+
shell: bash
31+
run: npm test

.github/renovate.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"extends": [
3+
"config:js-app",
4+
":gitSignOff",
5+
"group:allNonMajor",
6+
"group:linters",
7+
"group:semantic-releaseMonorepo"
8+
],
9+
"npm": {
10+
"stabilityDays": 3
11+
},
12+
"packageRules": [
13+
{
14+
"matchManagers": [
15+
"kustomize"
16+
],
17+
"enabled": false
18+
},
19+
{
20+
"matchManagers": [
21+
"github-actions"
22+
],
23+
"groupName": "GitHub Actions"
24+
}
25+
]
26+
}

.github/workflows/pr.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Pull request
2+
3+
on: pull_request
4+
5+
jobs:
6+
test:
7+
name: Test
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v3
12+
13+
- name: Test
14+
uses: ./.github/actions/test
15+
16+
build:
17+
name: Build all packages
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v3
22+
23+
- name: Build
24+
uses: ./.github/actions/build

.github/workflows/push.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Push
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
test:
10+
name: Test
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
16+
- name: Test
17+
uses: ./.github/actions/test
18+
19+
build:
20+
name: Build all packages
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v3
25+
26+
- name: Build
27+
uses: ./.github/actions/build

0 commit comments

Comments
 (0)