Skip to content

Commit

Permalink
test: change action yml (#11)
Browse files Browse the repository at this point in the history
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit


- **Chores**
- Updated GitHub Actions workflows for better compatibility and
automation.
	- Modified `.gitignore` to exclude `package-lock.json`.
- **Documentation**
	- Updated the CHANGELOG with version history and notes.
- Refreshed the README, including contributor information and
specification timestamps.
- **Bug Fixes**
- Adjusted the matrix for node versions and operating systems in GitHub
Actions workflow.
- Updated the release trigger to automate releases on pushes to the
master branch.
	- Changed the source repository for the Node.js release action.
	- Added `package-lock.json` to the `.gitignore` file.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
fengmk2 authored Mar 28, 2024
1 parent 3a030e7 commit 25dcf3d
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 173 deletions.
70 changes: 0 additions & 70 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

50 changes: 10 additions & 40 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,16 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI
name: CI

on:
push:
branches:
- main
- master
branches: [ master ]

pull_request:
branches:
- main
- master
schedule:
- cron: '0 2 * * *'
branches: [ master ]

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node-version: [8, 10, 12, 14, 16]
os: [ubuntu-latest]

steps:
- name: Checkout Git Source
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: npm i

- name: Continuous Integration
run: npm run ci

- name: Code Coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
Job:
name: Node.js
uses: node-modules/github-actions/.github/workflows/node-test.yml@master
with:
os: 'ubuntu-latest'
version: '8, 10, 12, 14, 16, 18, 20, 21'
8 changes: 1 addition & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
name: Release

on:
# 合并后自动发布
push:
branches: [ master ]

# 手动发布
workflow_dispatch: {}

jobs:
release:
name: Node.js
uses: artusjs/github-actions/.github/workflows/node-release.yml@v1
uses: node-modules/github-actions/.github/workflows/node-release.yml@master
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
with:
checkTest: false
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
coverage

test/fixtures/ts/**/*.js
test/fixtures/ts/**/*.js
package-lock.json
45 changes: 45 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,48 @@
### Features

* add reset method ([#10](https://github.com/node-modules/ylru/issues/10)) ([39ebcec](https://github.com/node-modules/ylru/commit/39ebcecbac34f8efd04959bb42cc6b88a9d2bd8a))

---


1.3.2 / 2022-03-17
==================

**others**
* [[`eda13ec`](http://github.com/node-modules/ylru/commit/eda13ec31cb40d28cb00dea0369fc5c657aecb9c)] - test: update toolchains, add tsd test cases (raohai.rh <<[email protected]>>)
* [[`b683526`](http://github.com/node-modules/ylru/commit/b68352659a95158a54f72f3ac502cd9881759d00)] - 🤖 TEST: Create codeql-analysis.yml (#7) (fengmk2 <<[email protected]>>)
* [[`db06032`](http://github.com/node-modules/ylru/commit/db060326f526aa4aef23a77f5185e36922f4a178)] - 🤖 TEST: Run on github action (#6) (fengmk2 <<[email protected]>>)

1.3.1 / 2022-03-16
==================

**fixes**
* [[`18f576e`](http://github.com/node-modules/ylru/commit/18f576eb12ce456a7af419b68bd17d74bf567de6)] - fix: module declares (#5) (陆沉 <<[email protected]>>)

1.3.0 / 2022-03-16
==================

**features**
* [[`6ed8fa0`](http://github.com/node-modules/ylru/commit/6ed8fa004e1a0d634ba8d277f70933a7a8945cf2)] - feat: add d.ts (#4) (vagusX <<[email protected]>>)

1.2.1 / 2018-07-11
==================

**others**
* [[`475abb0`](http://github.com/node-modules/ylru/commit/475abb0e9c787fd65d7c3dd3d2d74d67560b0bec)] - perf: only call Date.now() when necessary (#3) (Yiyu He <<[email protected]>>)

1.2.0 / 2017-07-18
==================

* feat: support lru.keys (#2)

1.1.0 / 2017-07-04
==================

* feat: support get with maxAge (#1)

1.0.0 / 2016-12-29
==================

* init version

42 changes: 0 additions & 42 deletions History.md

This file was deleted.

7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,15 @@ lru.keys().length === 0;
## License

[MIT](LICENSE)

<!-- GITCONTRIBUTOR_START -->

## Contributors

|[<img src="https://avatars.githubusercontent.com/u/259374?v=4" width="100px;"/><br/><sub><b>dominictarr</b></sub>](https://github.com/dominictarr)<br/>|[<img src="https://avatars.githubusercontent.com/u/156269?v=4" width="100px;"/><br/><sub><b>fengmk2</b></sub>](https://github.com/fengmk2)<br/>|[<img src="https://avatars.githubusercontent.com/u/985607?v=4" width="100px;"/><br/><sub><b>dead-horse</b></sub>](https://github.com/dead-horse)<br/>|[<img src="https://avatars.githubusercontent.com/u/25395?v=4" width="100px;"/><br/><sub><b>mourner</b></sub>](https://github.com/mourner)<br/>|[<img src="https://avatars.githubusercontent.com/u/6828924?v=4" width="100px;"/><br/><sub><b>vagusX</b></sub>](https://github.com/vagusX)<br/>|[<img src="https://avatars.githubusercontent.com/u/566097?v=4" width="100px;"/><br/><sub><b>RaoHai</b></sub>](https://github.com/RaoHai)<br/>|
|[<img src="https://avatars.githubusercontent.com/u/156269?v=4" width="100px;"/><br/><sub><b>fengmk2</b></sub>](https://github.com/fengmk2)<br/>|[<img src="https://avatars.githubusercontent.com/u/259374?v=4" width="100px;"/><br/><sub><b>dominictarr</b></sub>](https://github.com/dominictarr)<br/>|[<img src="https://avatars.githubusercontent.com/u/985607?v=4" width="100px;"/><br/><sub><b>dead-horse</b></sub>](https://github.com/dead-horse)<br/>|[<img src="https://avatars.githubusercontent.com/u/958063?v=4" width="100px;"/><br/><sub><b>thonatos</b></sub>](https://github.com/thonatos)<br/>|[<img src="https://avatars.githubusercontent.com/u/25395?v=4" width="100px;"/><br/><sub><b>mourner</b></sub>](https://github.com/mourner)<br/>|[<img src="https://avatars.githubusercontent.com/u/32174276?v=4" width="100px;"/><br/><sub><b>semantic-release-bot</b></sub>](https://github.com/semantic-release-bot)<br/>|
| :---: | :---: | :---: | :---: | :---: | :---: |
[<img src="https://avatars.githubusercontent.com/u/6828924?v=4" width="100px;"/><br/><sub><b>vagusX</b></sub>](https://github.com/vagusX)<br/>|[<img src="https://avatars.githubusercontent.com/u/566097?v=4" width="100px;"/><br/><sub><b>RaoHai</b></sub>](https://github.com/RaoHai)<br/>


This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Wed Mar 16 2022 23:57:13 GMT+0800`.
This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Thu Mar 28 2024 11:52:18 GMT+0800`.

<!-- GITCONTRIBUTOR_END -->
11 changes: 1 addition & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@
"beautify-benchmark": "^0.2.4",
"benchmark": "^2.1.3",
"egg-bin": "^1.10.0",
"egg-ci": "^1.19.0",
"eslint": "^4.19.1",
"eslint-config-egg": "^6.0.0",
"git-contributor": "^1.0.10",
"git-contributor": "^2.1.5",
"hashlru": "^1.0.3",
"ko-sleep": "^1.0.2",
"lru-cache": "^4.0.2",
Expand All @@ -40,13 +39,5 @@
"engines": {
"node": ">= 4.0.0"
},
"ci": {
"version": "8, 10, 12, 14, 16",
"type": "github",
"os": {
"github": "linux"
},
"npminstall": false
},
"license": "MIT"
}

0 comments on commit 25dcf3d

Please sign in to comment.