Skip to content

Commit a927a00

Browse files
authored
feat!: mdr integration and deps update (#28)
* feat: mdr enrollment * refactor: minor changes and missing values * refactor(deps): updated deps to be up to date * ci(configurations): added init npm action * ci(configurations): build image node version fix * refactor: changes according to pr * refactor: some improvements * docs: updated lua examples
1 parent 4d197a8 commit a927a00

File tree

87 files changed

+13252
-29555
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+13252
-29555
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
#prevent git from chaning line endings of sh file to /r/n on windows systems
22
*.sh text eol=lf
3+
*.* text eol=lf

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ about: Create a report to help us improve
44
title: ''
55
labels: 'bug'
66
assignees: ''
7-
87
---
98

109
**Describe the bug**
1110
A clear and concise description of what the bug is.
1211

1312
**To Reproduce**
1413
Steps to reproduce the behavior:
14+
1515
1. Go to '...'
1616
2. Click on '....'
1717
3. Scroll down to '....'
@@ -23,6 +23,5 @@ A clear and concise description of what you expected to happen.
2323
**Screenshots**
2424
If applicable, add screenshots to help explain your problem.
2525

26-
2726
**Additional context**
2827
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: Suggest an idea for this project
44
title: ''
55
labels: 'enhancement'
66
assignees: ''
7-
87
---
98

109
**Is your feature request related to a problem? Please describe.**

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,21 @@
22
Make sure you've read the contributing guidelines (CONTRIBUTING.md)
33
-->
44

5-
| Question | Answer |
6-
| ---------------- | -------------------------------------------------------------------------- |
7-
| Bug fix | ✔/✖ |
8-
| New feature | ✔/✖ |
9-
| Breaking change | ✔/✖ |
10-
| Deprecations | ✔/✖ |
11-
| Documentation | ✔/✖ |
12-
| Tests added | ✔/✖ |
13-
| Chore | ✔/✖ |
5+
| Question | Answer |
6+
| --------------- | ------ |
7+
| Bug fix | ✔/✖ |
8+
| New feature | ✔/✖ |
9+
| Breaking change | ✔/✖ |
10+
| Deprecations | ✔/✖ |
11+
| Documentation | ✔/✖ |
12+
| Tests added | ✔/✖ |
13+
| Chore | ✔/✖ |
1414

1515
Related issues: #XXX , #XXX ...
1616
Closes #XXX ...
1717

18-
Further information:
18+
Further information:
19+
1920
<!--
2021
Here you can provide more information regarding any of the questions written above.
2122
In addition, you can add screenshots, ask the maintainers questions.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
name: init-npm
3+
description: 'Initialize the repo with npm and install all the dependencies'
4+
inputs:
5+
node-version:
6+
description: 'Node.js version'
7+
required: true
8+
default: '20.x'
9+
runs:
10+
using: composite
11+
steps:
12+
- name: Set up Node.js
13+
uses: actions/setup-node@v4
14+
with:
15+
node-version: ${{ inputs.node-version }}
16+
cache: npm
17+
- name: Install TS Project dependencies
18+
shell: bash
19+
run: npm ci

.github/dependabot.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/dependabot-2.0.json
2+
version: 2
3+
updates:
4+
# deps
5+
- package-ecosystem: npm
6+
target-branch: 'master'
7+
schedule:
8+
interval: weekly
9+
allow:
10+
- dependency-type: production
11+
directory: /
12+
commit-message:
13+
prefix: 'deps'
14+
groups:
15+
map-colonies:
16+
patterns:
17+
- '@map-colonies/*'
18+
opentelemetry:
19+
patterns:
20+
- '@opentelemetry/*'
21+
patch:
22+
update-types:
23+
- patch
24+
# dev-deps
25+
- package-ecosystem: npm
26+
schedule:
27+
interval: weekly
28+
allow:
29+
- dependency-type: development
30+
directory: /
31+
commit-message:
32+
prefix: 'devdeps'
33+
groups:
34+
map-colonies:
35+
patterns:
36+
- '@map-colonies/*'
37+
opentelemetry:
38+
patterns:
39+
- '@opentelemetry/*'
40+
types:
41+
patterns:
42+
- '@types/*'
43+
dev-patch:
44+
update-types:
45+
- patch
46+
47+
# github deps
48+
- package-ecosystem: github-actions
49+
schedule:
50+
interval: weekly
51+
commit-message:
52+
prefix: 'ci'
53+
directory: '/'
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build and push artifacts
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
workflow_dispatch:
9+
inputs:
10+
version:
11+
required: true
12+
type: string
13+
env:
14+
HELM_EXPERIMENTAL_OCI: 1
15+
16+
permissions:
17+
contents: write
18+
pull-requests: write
19+
20+
jobs:
21+
build_and_push_docker:
22+
uses: MapColonies/shared-workflows/.github/workflows/build-and-push-docker.yaml@v4
23+
secrets: inherit
24+
with:
25+
scope: vector
26+
27+
build_and_push_helm:
28+
uses: MapColonies/shared-workflows/.github/workflows/build-and-push-helm.yaml@v4
29+
secrets: inherit
30+
with:
31+
scope: vector

.github/workflows/pull_request.yaml

Lines changed: 24 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,57 @@
11
name: pull_request
22

3-
on: [pull_request]
3+
on: [pull_request, workflow_dispatch]
44

55
jobs:
6-
tests:
7-
name: Run Tests
6+
eslint:
7+
name: Run eslint
88
runs-on: ubuntu-latest
99

1010
strategy:
1111
matrix:
12-
node: [16.x, 18.x]
12+
node: [20.x, 22.x]
1313

1414
steps:
1515
- name: Check out Git repository
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v4
1717

1818
- name: Set up Node.js
19-
uses: actions/setup-node@v1
19+
uses: ./.github/actions/init-npm
2020
with:
2121
node-version: ${{ matrix.node }}
2222

23-
- name: Install Node.js dependencies
24-
run: npm ci
25-
26-
- name: Run tests
27-
run: npm run test
28-
29-
- uses: actions/upload-artifact@v2
23+
- name: Run linters
24+
uses: wearerequired/lint-action@v2
3025
with:
31-
name: Test Reporters
32-
path: reports/**
26+
github_token: ${{ secrets.github_token }}
27+
eslint: true
28+
prettier: true
29+
eslint_extensions: ts
3330

34-
eslint:
35-
name: Run eslint
31+
tests:
32+
name: Run Tests
3633
runs-on: ubuntu-latest
3734

3835
strategy:
3936
matrix:
40-
node: [16]
37+
node: [20.x, 22.x]
4138

4239
steps:
4340
- name: Check out Git repository
44-
uses: actions/checkout@v2
41+
uses: actions/checkout@v4
4542

4643
- name: Set up Node.js
47-
uses: actions/setup-node@v1
44+
uses: ./.github/actions/init-npm
4845
with:
4946
node-version: ${{ matrix.node }}
5047

51-
- name: Install dependencies
52-
run: npm ci
48+
- name: Run tests
49+
run: npm run test
5350

54-
- name: Run linters
55-
uses: wearerequired/lint-action@v1
51+
- uses: actions/upload-artifact@v4
5652
with:
57-
github_token: ${{ secrets.github_token }}
58-
# Enable linters
59-
eslint: true
60-
prettier: true
61-
eslint_extensions: ts
53+
name: Test Reporters ${{ matrix.node }}
54+
path: ./reports/**
6255

6356
security:
6457
runs-on: ubuntu-latest
@@ -76,11 +69,11 @@ jobs:
7669

7770
strategy:
7871
matrix:
79-
node: [16]
72+
node: [20, 22]
8073

8174
steps:
8275
- name: Check out Git repository
83-
uses: actions/checkout@v2
76+
uses: actions/checkout@v4
8477

8578
- name: build Docker image
8679
run: docker build -t test-build:latest --build-arg NODE_VERSION .

.github/workflows/release-on-tag-push.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
10+
name: release-please
11+
12+
jobs:
13+
release-please:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: googleapis/release-please-action@v4
17+
with:
18+
# this assumes that you have created a personal access token
19+
# (PAT) and configured it as a GitHub action secret named
20+
# `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
21+
token: ${{ secrets.GH_PAT }}

0 commit comments

Comments
 (0)