Skip to content

Commit

Permalink
ci: Setup new CI configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed May 23, 2024
1 parent fc7c7d2 commit d568b46
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 8 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# main only

name: Integrate

on:
push:
branches: [main]

env:
FORCE_COLOR: 1

jobs:
_:
uses: medikoo/github-actions-workflows/.github/workflows/0.12-integrate.yml@main
secrets:
USER_GITHUB_TOKEN: ${{ secrets.USER_GITHUB_TOKEN }}
18 changes: 18 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Version tags only

name: Publish

on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+

env:
FORCE_COLOR: 1

jobs:
_:
uses: medikoo/github-actions-workflows/.github/workflows/publish.yml@main
secrets:
USER_GITHUB_TOKEN: ${{ secrets.USER_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
14 changes: 14 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# PR's only

name: Validate

on:
pull_request:
branches: [main]

env:
FORCE_COLOR: 1

jobs:
_:
uses: medikoo/github-actions-workflows/.github/workflows/0.12-validate.yml@main
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[![*nix build status][nix-build-image]][nix-build-url]
[![Windows build status][win-build-image]][win-build-url]
![Transpilation status][transpilation-image]
[![Build status][build-image]][build-url]
[![Tests coverage][cov-image]][cov-url]
[![npm version][npm-image]][npm-url]

# Memoizee
Expand Down Expand Up @@ -509,10 +508,9 @@ To report a security vulnerability, please use the [Tidelift security contact](h
- [@puzrin](https://github.com/puzrin) (Vitaly Puzrin)
- Proposal and help with coining right _pre-fetch_ logic for [_maxAge_](https://github.com/medikoo/memoize#expire-cache-after-given-period-of-time) variant

[nix-build-image]: https://semaphoreci.com/api/v1/medikoo-org/memoizee/branches/master/shields_badge.svg
[nix-build-url]: https://semaphoreci.com/medikoo-org/memoizee
[win-build-image]: https://ci.appveyor.com/api/projects/status/hsxubnbwe89c26bu?svg=true
[win-build-url]: https://ci.appveyor.com/project/medikoo/memoizee
[transpilation-image]: https://img.shields.io/badge/transpilation-free-brightgreen.svg
[build-image]: https://github.com/medikoo/memoizee/workflows/Integrate/badge.svg
[build-url]: https://github.com/medikoo/memoizee/actions?query=workflow%3AIntegrate
[cov-image]: https://img.shields.io/codecov/c/github/medikoo/memoizee.svg
[cov-url]: https://codecov.io/gh/medikoo/memoizee
[npm-image]: https://img.shields.io/npm/v/memoizee.svg
[npm-url]: https://www.npmjs.com/package/memoizee
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"eslint": "^8.57.0",
"eslint-config-medikoo": "^4.2.0",
"git-list-updated": "^1.2.1",
"github-release-from-cc-changelog": "^2.3.0",
"husky": "^4.3.8",
"lint-staged": "^15.2.4",
"nyc": "^15.1.0",
Expand Down

0 comments on commit d568b46

Please sign in to comment.