@emartech/program-executor 3.5.1 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/CODEOWNERS +4 -0
- package/.github/dependabot.yml +34 -0
- package/.github/workflows/main.yaml +70 -0
- package/docker-compose.yml +9 -8
- package/package.json +2 -2
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Please see the documentation for all configuration options:
|
|
2
|
+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
|
3
|
+
|
|
4
|
+
version: 2
|
|
5
|
+
|
|
6
|
+
registries:
|
|
7
|
+
npm-npmjs:
|
|
8
|
+
type: npm-registry
|
|
9
|
+
url: https://registry.npmjs.org
|
|
10
|
+
token: ${{ secrets.NPM_DEPLOYER_TOKEN }}
|
|
11
|
+
|
|
12
|
+
updates:
|
|
13
|
+
# Maintain dependencies for npm
|
|
14
|
+
- package-ecosystem: "npm"
|
|
15
|
+
directory: "/"
|
|
16
|
+
registries:
|
|
17
|
+
- npm-npmjs
|
|
18
|
+
schedule:
|
|
19
|
+
interval: "weekly"
|
|
20
|
+
day: "monday"
|
|
21
|
+
time: "09:00"
|
|
22
|
+
# Add assignees
|
|
23
|
+
reviewers:
|
|
24
|
+
- "IvanFroehlich"
|
|
25
|
+
- "MauroGreco"
|
|
26
|
+
- "oliverweisenburger"
|
|
27
|
+
- "dimirovn"
|
|
28
|
+
- "ianhelmrich"
|
|
29
|
+
commit-message:
|
|
30
|
+
# Prefix all commit messages with "npm: "
|
|
31
|
+
prefix: "[dependabot]npm"
|
|
32
|
+
include: "scope"
|
|
33
|
+
open-pull-requests-limit: 5
|
|
34
|
+
target-branch: "main"
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on: [push]
|
|
4
|
+
|
|
5
|
+
env:
|
|
6
|
+
NPM_TOKEN: ${{ secrets.NPM_PUBLISHER_TOKEN }}
|
|
7
|
+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
8
|
+
CI_REPO_NAME: ${{ github.repository }}
|
|
9
|
+
CI_COMMIT_ID: ${{ github.sha }}
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
test:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
container: node:18-alpine3.16
|
|
15
|
+
|
|
16
|
+
services:
|
|
17
|
+
postgres:
|
|
18
|
+
image: postgres:14-alpine
|
|
19
|
+
env:
|
|
20
|
+
POSTGRES_USER: developer
|
|
21
|
+
POSTGRES_PASSWORD: development_secret
|
|
22
|
+
POSTGRES_DB: programexecutor
|
|
23
|
+
options: >-
|
|
24
|
+
--health-cmd pg_isready
|
|
25
|
+
--health-interval 10s
|
|
26
|
+
--health-timeout 5s
|
|
27
|
+
--health-retries 5
|
|
28
|
+
ports:
|
|
29
|
+
- 5432:5432
|
|
30
|
+
|
|
31
|
+
steps:
|
|
32
|
+
- name: Check out repository
|
|
33
|
+
uses: actions/checkout@v4
|
|
34
|
+
- name: Use newest Node version
|
|
35
|
+
uses: actions/setup-node@v3
|
|
36
|
+
with:
|
|
37
|
+
node-version: "lts/*"
|
|
38
|
+
- name: Set NPM token
|
|
39
|
+
run: npm config set '//registry.npmjs.org/:_authToken' "${{ env.NPM_TOKEN }}"
|
|
40
|
+
- name: npm dependencies
|
|
41
|
+
run: npm install
|
|
42
|
+
- name: npm test
|
|
43
|
+
run: npm test
|
|
44
|
+
env:
|
|
45
|
+
DATABASE_URL: 'postgres://developer:development_secret@postgres:5432/programexecutor'
|
|
46
|
+
|
|
47
|
+
deploy:
|
|
48
|
+
name: deploy
|
|
49
|
+
needs: [test]
|
|
50
|
+
runs-on: ubuntu-latest
|
|
51
|
+
if: ${{ github.ref == 'refs/heads/main' }}
|
|
52
|
+
steps:
|
|
53
|
+
- name: Check out repository
|
|
54
|
+
uses: actions/checkout@v3
|
|
55
|
+
- name: Use newest Node version
|
|
56
|
+
uses: actions/setup-node@v3
|
|
57
|
+
with:
|
|
58
|
+
node-version: "lts/*"
|
|
59
|
+
- name: Set NPM token
|
|
60
|
+
run: npm config set '//registry.npmjs.org/:_authToken' "${{ env.NPM_TOKEN }}"
|
|
61
|
+
- name: npm dependencies
|
|
62
|
+
run: npm install
|
|
63
|
+
- name: Cache node_modules
|
|
64
|
+
id: cache_node_modules
|
|
65
|
+
uses: actions/cache@v3
|
|
66
|
+
with:
|
|
67
|
+
path: node_modules
|
|
68
|
+
key: node_modules-${{ hashFiles('**/package-lock.json') }}
|
|
69
|
+
- name: Publish package
|
|
70
|
+
run: CI=true npm run semantic-release
|
package/docker-compose.yml
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
services:
|
|
2
|
+
postgres:
|
|
3
|
+
image: postgres:13.12
|
|
4
|
+
environment:
|
|
5
|
+
- POSTGRES_USER=developer
|
|
6
|
+
- POSTGRES_PASSWORD=development_secret
|
|
7
|
+
- POSTGRES_DB=programexecutor
|
|
8
|
+
ports:
|
|
9
|
+
- 5435:5432
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "mocha --exit --reporter spec 'src/**/*.spec.js'",
|
|
7
7
|
"code-style": "eslint '**/*.js' --ignore-pattern node_modules/",
|
|
8
|
-
"semantic-release": "semantic-release"
|
|
8
|
+
"semantic-release": "semantic-release --branches main"
|
|
9
9
|
},
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"sinon": "9.2.4",
|
|
43
43
|
"sinon-chai": "3.5.0"
|
|
44
44
|
},
|
|
45
|
-
"version": "3.
|
|
45
|
+
"version": "3.6.0"
|
|
46
46
|
}
|