@anmiles/queue 3.0.1 → 3.0.2
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/workflows/ci.yml +94 -0
- package/CHANGELOG.md +4 -0
- package/package.json +10 -9
- package/.gitlab-ci.yml +0 -117
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request:
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
|
|
10
|
+
concurrency:
|
|
11
|
+
group: "${{ github.workflow }}-${{ github.ref }}"
|
|
12
|
+
cancel-in-progress: true
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
install:
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
container:
|
|
18
|
+
image: node:18.14
|
|
19
|
+
timeout-minutes: 30
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v4
|
|
22
|
+
- uses: actions/cache@v4
|
|
23
|
+
with:
|
|
24
|
+
path: node_modules
|
|
25
|
+
key: "node_modules-${{ hashFiles('package-lock.json') }}"
|
|
26
|
+
lookup-only: true
|
|
27
|
+
- run: npm ci
|
|
28
|
+
|
|
29
|
+
build:
|
|
30
|
+
needs: install
|
|
31
|
+
runs-on: ubuntu-latest
|
|
32
|
+
container:
|
|
33
|
+
image: node:18.14
|
|
34
|
+
timeout-minutes: 30
|
|
35
|
+
steps:
|
|
36
|
+
- uses: actions/checkout@v4
|
|
37
|
+
- uses: actions/cache@v4
|
|
38
|
+
with:
|
|
39
|
+
path: node_modules
|
|
40
|
+
key: "node_modules-${{ hashFiles('package-lock.json') }}"
|
|
41
|
+
- run: npm run build:ci
|
|
42
|
+
|
|
43
|
+
lint:
|
|
44
|
+
needs: build
|
|
45
|
+
runs-on: ubuntu-latest
|
|
46
|
+
container:
|
|
47
|
+
image: node:18.14
|
|
48
|
+
timeout-minutes: 30
|
|
49
|
+
steps:
|
|
50
|
+
- uses: actions/checkout@v4
|
|
51
|
+
- uses: actions/cache@v4
|
|
52
|
+
with:
|
|
53
|
+
path: node_modules
|
|
54
|
+
key: "node_modules-${{ hashFiles('package-lock.json') }}"
|
|
55
|
+
- run: npm run lint
|
|
56
|
+
|
|
57
|
+
test:
|
|
58
|
+
needs: build
|
|
59
|
+
runs-on: ubuntu-latest
|
|
60
|
+
container:
|
|
61
|
+
image: node:18.14
|
|
62
|
+
timeout-minutes: 30
|
|
63
|
+
steps:
|
|
64
|
+
- uses: actions/checkout@v4
|
|
65
|
+
- uses: actions/cache@v4
|
|
66
|
+
with:
|
|
67
|
+
path: node_modules
|
|
68
|
+
key: "node_modules-${{ hashFiles('package-lock.json') }}"
|
|
69
|
+
- uses: actions/cache@v4
|
|
70
|
+
with:
|
|
71
|
+
path: coverage
|
|
72
|
+
key: "coverage-${{ hashFiles('package-lock.json') }}"
|
|
73
|
+
lookup-only: true
|
|
74
|
+
- run: npm run test:ci
|
|
75
|
+
|
|
76
|
+
coverage:
|
|
77
|
+
needs:
|
|
78
|
+
- lint
|
|
79
|
+
- test
|
|
80
|
+
runs-on: ubuntu-latest
|
|
81
|
+
container:
|
|
82
|
+
image: node:18.14
|
|
83
|
+
timeout-minutes: 30
|
|
84
|
+
steps:
|
|
85
|
+
- uses: actions/checkout@v4
|
|
86
|
+
- uses: actions/cache@v4
|
|
87
|
+
with:
|
|
88
|
+
path: node_modules
|
|
89
|
+
key: "node_modules-${{ hashFiles('package-lock.json') }}"
|
|
90
|
+
- uses: actions/cache@v4
|
|
91
|
+
with:
|
|
92
|
+
path: coverage
|
|
93
|
+
key: "coverage-${{ hashFiles('package-lock.json') }}"
|
|
94
|
+
- run: npm run test:report:coverage
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [3.0.2](../../tags/v3.0.2) - 2024-01-31
|
|
9
|
+
### Changed
|
|
10
|
+
- Migrate to GitHub
|
|
11
|
+
|
|
8
12
|
## [3.0.1](../../tags/v3.0.1) - 2024-01-29
|
|
9
13
|
### Changed
|
|
10
14
|
- Explicitly specify ignores from .gitignore in .eslintrc.js
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anmiles/queue",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "Queue dispatcher that sequentially processes incoming items",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"queue",
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"dispatcher"
|
|
9
9
|
],
|
|
10
10
|
"author": "Anatoliy Oblaukhov",
|
|
11
|
-
"homepage": "https://
|
|
12
|
-
"repository": "
|
|
11
|
+
"homepage": "https://github.com/anmiles/queue",
|
|
12
|
+
"repository": "github:anmiles/queue",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">=18.14.2"
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"main": "dist/index.js",
|
|
18
18
|
"scripts": {
|
|
19
19
|
"build": "rimraf dist && tsc -p ./tsconfig.build.json",
|
|
20
|
+
"build:ci": "tsc -noEmit -p ./tsconfig.build.json",
|
|
20
21
|
"lint": "eslint --ext .js,.ts .",
|
|
21
22
|
"lint:fix": "npm run lint -- --fix",
|
|
22
23
|
"test": "jest --verbose",
|
|
@@ -30,12 +31,12 @@
|
|
|
30
31
|
"emittery": "^0.13.1"
|
|
31
32
|
},
|
|
32
33
|
"devDependencies": {
|
|
33
|
-
"@anmiles/eslint-config": "^5.0.
|
|
34
|
-
"@anmiles/sleep": "^3.0.
|
|
35
|
-
"@anmiles/tsconfig": "^2.0.
|
|
34
|
+
"@anmiles/eslint-config": "^5.0.2",
|
|
35
|
+
"@anmiles/sleep": "^3.0.2",
|
|
36
|
+
"@anmiles/tsconfig": "^2.0.1",
|
|
36
37
|
"@types/jest": "^29.5.11",
|
|
37
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
38
|
-
"@typescript-eslint/parser": "^6.
|
|
38
|
+
"@typescript-eslint/eslint-plugin": "^6.20.0",
|
|
39
|
+
"@typescript-eslint/parser": "^6.20.0",
|
|
39
40
|
"eslint": "^8.56.0",
|
|
40
41
|
"eslint-plugin-align-assignments": "^1.1.2",
|
|
41
42
|
"eslint-plugin-import": "^2.29.1",
|
|
@@ -43,7 +44,7 @@
|
|
|
43
44
|
"jest": "^29.7.0",
|
|
44
45
|
"nyc": "^15.1.0",
|
|
45
46
|
"rimraf": "^5.0.5",
|
|
46
|
-
"ts-jest": "^29.1.
|
|
47
|
+
"ts-jest": "^29.1.2",
|
|
47
48
|
"typescript": "^5.3.3"
|
|
48
49
|
}
|
|
49
50
|
}
|
package/.gitlab-ci.yml
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
default:
|
|
2
|
-
image: node:18.14
|
|
3
|
-
|
|
4
|
-
stages:
|
|
5
|
-
- setup
|
|
6
|
-
- build
|
|
7
|
-
- test
|
|
8
|
-
- coverage
|
|
9
|
-
- deploy
|
|
10
|
-
|
|
11
|
-
install:
|
|
12
|
-
stage: setup
|
|
13
|
-
cache:
|
|
14
|
-
key:
|
|
15
|
-
files:
|
|
16
|
-
- package-lock.json
|
|
17
|
-
prefix: ${CI_COMMIT_REF_SLUG}
|
|
18
|
-
paths:
|
|
19
|
-
- node_modules
|
|
20
|
-
policy: pull-push
|
|
21
|
-
script:
|
|
22
|
-
- npm ci
|
|
23
|
-
only:
|
|
24
|
-
- main
|
|
25
|
-
- merge_requests
|
|
26
|
-
|
|
27
|
-
build:
|
|
28
|
-
stage: build
|
|
29
|
-
cache:
|
|
30
|
-
key:
|
|
31
|
-
files:
|
|
32
|
-
- package-lock.json
|
|
33
|
-
prefix: ${CI_COMMIT_REF_SLUG}
|
|
34
|
-
paths:
|
|
35
|
-
- node_modules
|
|
36
|
-
policy: pull
|
|
37
|
-
script:
|
|
38
|
-
- npm run build
|
|
39
|
-
artifacts:
|
|
40
|
-
paths:
|
|
41
|
-
- dist/
|
|
42
|
-
only:
|
|
43
|
-
- main
|
|
44
|
-
- merge_requests
|
|
45
|
-
|
|
46
|
-
lint:
|
|
47
|
-
stage: test
|
|
48
|
-
cache:
|
|
49
|
-
key:
|
|
50
|
-
files:
|
|
51
|
-
- package-lock.json
|
|
52
|
-
prefix: ${CI_COMMIT_REF_SLUG}
|
|
53
|
-
paths:
|
|
54
|
-
- node_modules
|
|
55
|
-
policy: pull
|
|
56
|
-
script:
|
|
57
|
-
- npm run lint
|
|
58
|
-
only:
|
|
59
|
-
- main
|
|
60
|
-
- merge_requests
|
|
61
|
-
|
|
62
|
-
test:
|
|
63
|
-
stage: test
|
|
64
|
-
cache:
|
|
65
|
-
- key:
|
|
66
|
-
files:
|
|
67
|
-
- package-lock.json
|
|
68
|
-
prefix: ${CI_COMMIT_REF_SLUG}
|
|
69
|
-
paths:
|
|
70
|
-
- node_modules
|
|
71
|
-
policy: pull
|
|
72
|
-
- key: ${CI_COMMIT_REF_SLUG}_coverage
|
|
73
|
-
paths:
|
|
74
|
-
- coverage/**/*
|
|
75
|
-
policy: push
|
|
76
|
-
script:
|
|
77
|
-
- npm run test:ci
|
|
78
|
-
only:
|
|
79
|
-
- main
|
|
80
|
-
- merge_requests
|
|
81
|
-
|
|
82
|
-
coverage:
|
|
83
|
-
stage: coverage
|
|
84
|
-
cache:
|
|
85
|
-
- key:
|
|
86
|
-
files:
|
|
87
|
-
- package-lock.json
|
|
88
|
-
prefix: ${CI_COMMIT_REF_SLUG}
|
|
89
|
-
paths:
|
|
90
|
-
- node_modules
|
|
91
|
-
policy: pull
|
|
92
|
-
- key: ${CI_COMMIT_REF_SLUG}_coverage
|
|
93
|
-
paths:
|
|
94
|
-
- coverage/**/*
|
|
95
|
-
policy: pull
|
|
96
|
-
script:
|
|
97
|
-
- npm run test:report:coverage
|
|
98
|
-
only:
|
|
99
|
-
- main
|
|
100
|
-
- merge_requests
|
|
101
|
-
|
|
102
|
-
publish:
|
|
103
|
-
stage: deploy
|
|
104
|
-
cache:
|
|
105
|
-
key:
|
|
106
|
-
files:
|
|
107
|
-
- package-lock.json
|
|
108
|
-
prefix: ${CI_COMMIT_REF_SLUG}
|
|
109
|
-
paths:
|
|
110
|
-
- node_modules
|
|
111
|
-
policy: pull
|
|
112
|
-
script:
|
|
113
|
-
- npm publish
|
|
114
|
-
when: manual
|
|
115
|
-
only:
|
|
116
|
-
- main
|
|
117
|
-
- merge_requests
|