Skip to content

Commit 7499d1f

Browse files
committed
🔀 Merge branch 'devel' into release
- 🔧 'engines' section is added to 'package.json' - 💚 Code coverage report is archived on GitHub CI - 🤖 Dependabot is installed - 📝 GitHub Actions' canonical badge is used instead of Shields.io - 🏗️ Migration from `terser` to `esbuild` - 💚 Node.js is bumped from 16.8.0 to 16.13.1 for GitHub CI - ⬆️ Packages for development are bumped - `@types/chai` is bumped from 4.2.22 to 4.3.0 - `@types/node` is bumped from 16.11.6 to 16.11.12 - `@typescript-eslint/eslint-plugin` is bumped from 5.3.0 to 5.6.0 - `@typescript-eslint/parser` is bumped from 5.3.0 to 5.6.0 - `eslint` is bumped from 8.2.0 to 8.4.1 - `typescript` is bumped from 4.4.4 to 4.5.3 - 🔧 URL of the repository is simplified - 🔧 Unnecessary 'categories' section is purged from 'package.json' Signed-off-by: kei-g <km.8k6ce+github@gmail.com>
2 parents 9e54955 + 981461b commit 7499d1f

File tree

10 files changed

+8474
-49
lines changed

10 files changed

+8474
-49
lines changed

.github/.gitkeep

Whitespace-only changes.

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
target-branch: devel

.github/workflows/main.yml

Lines changed: 104 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,114 @@
1-
name: test
2-
on:
3-
push:
4-
branches: [ main ]
51
jobs:
6-
npm-test:
2+
build:
3+
continue-on-error: true
4+
name: Build on Node.js ${{ matrix.node }}
5+
outputs:
6+
result: ${{ steps.build.outputs.result }}
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
node:
12+
- '14.17.5'
13+
- '16.13.1'
14+
- '17.2.0'
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
with:
19+
fetch-depth: 1
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v2
22+
with:
23+
node-version: ${{ matrix.node }}
24+
- name: Setup modules
25+
run: npm install
26+
- name: Build
27+
id: build
28+
run: npm run build && echo "::set-output name=result::success"
29+
coverage:
30+
continue-on-error: true
31+
name: Check code coverages on Node.js ${{ matrix.node }}
32+
outputs:
33+
result: ${{ steps.coverage.outputs.result }}
34+
runs-on: ubuntu-latest
35+
strategy:
36+
fail-fast: false
37+
matrix:
38+
node:
39+
- '14.17.5'
40+
- '16.13.1'
41+
- '17.2.0'
42+
steps:
43+
- name: Checkout
44+
uses: actions/checkout@v2
45+
with:
46+
fetch-depth: 1
47+
- name: Setup Node.js
48+
uses: actions/setup-node@v2
49+
with:
50+
node-version: ${{ matrix.node }}
51+
- name: Setup modules
52+
run: npm install
53+
- name: Check code coverages
54+
id: coverage
55+
run: npm test && echo "::set-output name=result::success"
56+
- name: Archive code coverage report
57+
if: ${{ always() }}
58+
uses: actions/upload-artifact@v2
59+
with:
60+
name: code-coverage-report-${{ matrix.node }}
61+
path: coverage
62+
example:
63+
continue-on-error: true
64+
name: Run an example on Node.js ${{ matrix.node }}
65+
outputs:
66+
result: ${{ steps.example.outputs.result }}
767
runs-on: ubuntu-latest
868
strategy:
69+
fail-fast: false
970
matrix:
10-
node: [ '14.17.5', '16.8.0' ]
11-
name: Test on Node.js ${{ matrix.node }}
71+
node:
72+
- '14.17.5'
73+
- '16.13.1'
74+
- '17.2.0'
1275
steps:
13-
- uses: actions/checkout@v2
76+
- name: Checkout
77+
uses: actions/checkout@v2
78+
with:
79+
fetch-depth: 1
1480
- name: Setup Node.js
1581
uses: actions/setup-node@v2
1682
with:
1783
node-version: ${{ matrix.node }}
1884
- name: Setup modules
19-
run: npm i
20-
- name: Test
21-
run: npm test
85+
run: npm install
86+
- name: Run an example
87+
id: example
88+
run: npm start && echo "::set-output name=result::success"
89+
test:
90+
name: Aggregate results
91+
needs:
92+
- build
93+
- coverage
94+
- example
95+
runs-on: ubuntu-latest
96+
steps:
97+
- name: Check build result
98+
run: test "${{ needs.build.outputs.result }}" = "success" || { echo "\x1b[31mFailed to build\x1b[m"; exit 1; }
99+
- name: Check code coverages result
100+
run: test "${{ needs.coverage.outputs.result }}" = "success" || { echo "\x1b[31mFailed to check code coverages\x1b[m"; exit 1; }
101+
- name: Check example result
102+
run: test "${{ needs.example.outputs.result }}" = "success" || { echo "\x1b[31mFailed to run an example\x1b[m"; exit 1; }
103+
name: test
104+
on:
105+
pull_request:
106+
branches:
107+
- devel
108+
- main
109+
- release
110+
push:
111+
branches:
112+
- devel
113+
- main
114+
- release

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
**/*.js
33
**/.nyc_output/
44
**/.vscode/
5-
**/build/
65
**/coverage/
76
**/lib/
87
**/node_modules/
9-
**/package-lock.json

.npmignore

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
**/.editorconfig
2-
**/.eslintrc.json
3-
**/.github/
4-
**/.mocharc.json
5-
**/.nycrc.json
6-
**/.travis.yml
1+
**/.*
72
**/CODE_OF_CONDUCT.md
8-
**/build/
93
**/example.ts
104
**/src/
115
**/test/

CHANGELOG.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# ChangeLogs
22

3+
## Version 1.0.9
4+
5+
- :wrench: 'engines' section is added to 'package.json'
6+
- :green_heart: Code coverage report is archived on GitHub CI
7+
- :robot: Dependabot is installed
8+
- :memo: GitHub Actions' canonical badge is used instead of Shields.io
9+
- :building_construction: Migration from `terser` to `esbuild`
10+
- :green_heart: Node.js is bumped from 16.8.0 to 16.13.1 for GitHub CI
11+
- :arrow_up: Packages for development are bumped
12+
- `@types/chai` is bumped from 4.2.22 to 4.3.0
13+
- `@types/node` is bumped from 16.11.6 to 16.11.12
14+
- `@typescript-eslint/eslint-plugin` is bumped from 5.3.0 to 5.6.0
15+
- `@typescript-eslint/parser` is bumped from 5.3.0 to 5.6.0
16+
- `eslint` is bumped from 8.2.0 to 8.4.1
17+
- `typescript` is bumped from 4.4.4 to 4.5.3
18+
- :wrench: URL of the repository is simplified
19+
- :wrench: Unnecessary 'categories' section is purged from 'package.json'
20+
321
## Version 1.0.8
422

523
- :package: Badge section is deleted
@@ -8,7 +26,7 @@
826
- `@types/chai` is upgraded from 4.2.21 to 4.2.22
927
- `@types/node` is upgraded from 16.7.8 to 16.11.6
1028
- `@typescript-eslint/eslint-plugin` is upgraded from 4.30.0 to 5.3.0
11-
- `@typescript-eslint/eslint-parser` is upgraded from 4.30.0 to 5.3.0
29+
- `@typescript-eslint/parser` is upgraded from 4.30.0 to 5.3.0
1230
- `eslint` is upgraded from 7.32.0 to 8.2.0
1331
- `mocha` is upgraded from 9.1.1 to 9.1.3
1432
- `terser` is upgraded from 5.7.2 to 5.9.0

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# async-iterable-queue [![license][license-image]][license-url] [![npm][npm-image]][npm-url]
22

3-
[![coverage][nyc-cov-image]][github-url] [![dependency][depencency-image]][dependency-url] [![maintenance][maintenance-image]][npmsio-url] [![quality][quality-image]][npmsio-url] [![github][github-test-image]][github-url] [![travis][travis-image]][travis-url]
3+
[![coverage][nyc-cov-image]][github-url] [![dependency][depencency-image]][dependency-url] [![maintenance][maintenance-image]][npmsio-url] [![quality][quality-image]][npmsio-url] [![github][github-test-image]][github-test-url] [![travis][travis-image]][travis-url]
44

55
`async-iterable-queue` - A library for 'Queue' class which implements AsyncIterable\<T\> works on [Node.js](https://nodejs.org/)
66

@@ -62,7 +62,8 @@ example()
6262

6363
[depencency-image]:https://img.shields.io/librariesio/release/npm/async-iterable-queue?logo=nodedotjs
6464
[dependency-url]:https://npmjs.com/package/async-iterable-queue?activeTab=dependencies
65-
[github-test-image]:https://img.shields.io/github/workflow/status/kei-g/async-iterable-queue/test/main?label=test%20%26%20build&logo=github
65+
[github-test-image]:https://github.com/kei-g/async-iterable-queue/actions/workflows/main.yml/badge.svg?branch=main
66+
[github-test-url]:https://github.com/kei-g/async-iterable-queue/actions/workflows/main.yml
6667
[github-url]:https://github.com/kei-g/async-iterable-queue
6768
[license-image]:https://img.shields.io/github/license/kei-g/async-iterable-queue
6869
[license-url]:https://opensource.org/licenses/BSD-3-Clause

0 commit comments

Comments
 (0)