Skip to content

Commit bed3203

Browse files
node 20, add blocking parameter, add tests (#341)
* node 20, add blocking parameter, add tests * PR comments
1 parent 9272e3e commit bed3203

20 files changed

+4683
-1649
lines changed

.github/workflows/ci.yml

+27-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
- uses: actions/setup-node@v4
2020
with:
21-
node-version: 16
21+
node-version: 20
2222
cache: 'npm'
2323
cache-dependency-path: 'automagicallyexecute/package-lock.json'
2424

@@ -30,6 +30,10 @@ jobs:
3030
run: npm run build
3131
working-directory: "automagicallyexecute/"
3232

33+
- name: prune
34+
run: npm prune --omit=dev
35+
working-directory: "automagicallyexecute/"
36+
3337
- name: install tfx
3438
run: npm add -g tfx-cli
3539

@@ -45,7 +49,7 @@ jobs:
4549

4650
- uses: actions/setup-node@v4
4751
with:
48-
node-version: 16
52+
node-version: 20
4953
cache: 'npm'
5054
cache-dependency-path: 'automagicallyexecute/package-lock.json'
5155

@@ -56,3 +60,24 @@ jobs:
5660
- name: lint
5761
run: npm run lint
5862
working-directory: "automagicallyexecute/"
63+
64+
test:
65+
runs-on: ubuntu-latest
66+
name: testing
67+
steps:
68+
- name: Checkout
69+
uses: actions/checkout@v4
70+
71+
- uses: actions/setup-node@v4
72+
with:
73+
node-version: 20
74+
cache: 'npm'
75+
cache-dependency-path: 'automagicallyexecute/package-lock.json'
76+
77+
- name: install dependencies
78+
run: npm ci
79+
working-directory: "automagicallyexecute/"
80+
81+
- name: lint
82+
run: npm run test
83+
working-directory: "automagicallyexecute/"

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
- uses: actions/setup-node@v4
2020
with:
21-
node-version: 16
21+
node-version: 20
2222
cache: 'npm'
2323
cache-dependency-path: 'automagicallyexecute/package-lock.json'
2424

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v16
1+
v20

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,15 @@ See the [docs](https://octomind.dev/docs) for more details.
1919
url: <publicly accessible url to your deployment>
2020
token: ${{ secrets.AUTOMAGICALLY_TOKEN }}
2121
testTargetId: <your testTargetId that you also get from us>
22+
blocking: <if your pipeline should block until all tests have passed, defaults to false>
2223
```
2324
25+
By default the task will run a maximum duration of 2 hours before it will fail with a timeout.
26+
2427
## Change Log
2528
2629
- 2023-07-23: Added requirement for setting `testTargetId` to enable v2 API
30+
- 2024-10-18: Added blocking parameter to allow blocking your pipeline until all tests have passed.
2731

2832
## Publishing notes
2933

automagicallyexecute/.eslintrc.json

+25-5
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,39 @@
11
{
2-
"plugins": ["@typescript-eslint"],
3-
"extends": ["plugin:github/recommended"],
2+
"plugins": [
3+
"@typescript-eslint"
4+
],
5+
"extends": [
6+
"plugin:github/recommended"
7+
],
48
"parser": "@typescript-eslint/parser",
59
"parserOptions": {
6-
"project": "./tsconfig.json"
10+
"project": "./tsconfig.lint.json"
711
},
812
"env": {
913
"node": true,
1014
"jest": true
1115
},
12-
"ignorePatterns": ["node_modules"],
16+
"ignorePatterns": [
17+
"node_modules"
18+
],
1319
"rules": {
1420
"i18n-text/no-en": "off",
1521
"@typescript-eslint/no-floating-promises": "warn",
1622
"prettier/prettier": "warn",
17-
"no-console": "warn"
23+
"no-console": "warn",
24+
"filenames/match-regex": "off"
25+
},
26+
"settings": {
27+
"import/parsers": {
28+
"@typescript-eslint/parser": [
29+
".ts",
30+
".tsx"
31+
]
32+
},
33+
"import/resolver": {
34+
"typescript": {
35+
"alwaysTryTypes": true
36+
}
37+
}
1838
}
1939
}

automagicallyexecute/index.ts

-107
This file was deleted.

0 commit comments

Comments
 (0)