forked from bee-queue/arena
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alli 10561 alli data backend update pmg bull arena to be compatible with bull mq #3
Merged
JZhang502
merged 461 commits into
master
from
ALLI-10561-alli-data-backend-update-pmg-bull-arena-to-be-compatible-with-bull-mq
Jan 8, 2024
Merged
Changes from 250 commits
Commits
Show all changes
461 commits
Select commit
Hold shift + click to select a range
fc44bc9
chore(release): 3.4.0 [skip ci]
semantic-release-bot 6fc5860
chore(deps-dev): bump bee-queue from 1.2.3 to 1.3.0 (#275)
dependabot[bot] 7b16120
chore(deps-dev): bump bull from 3.18.1 to 3.19.0 (#287)
dependabot[bot] fc1eab0
chore(deps-dev): bump semantic-release from 17.2.2 to 17.2.4 (#284)
dependabot[bot] 53b8cd6
chore(deps-dev): bump @semantic-release/npm from 7.0.6 to 7.0.8 (#282)
dependabot[bot] 83f9714
chore(deps-dev): bump bee-queue from 1.3.0 to 1.3.1 (#276)
dependabot[bot] 9e889e7
chore(deps-dev): bump @semantic-release/github from 7.1.1 to 7.2.0 (#…
dependabot[bot] 6d35db0
chore(deps-dev): bump prettier from 2.1.2 to 2.2.0 (#286)
dependabot[bot] cea75c7
chore(deps-dev): bump conventional-changelog-conventionalcommits (#277)
dependabot[bot] da949f7
docs(bullmq): update readme docs (#273)
gtpan77 332fb3a
feat(job-details): support arenaName display field
kikar 8119423
chore(release): 3.5.0 [skip ci]
semantic-release-bot c10a294
feat: support bullmq in docker image
skeggse d37c668
chore(release): 3.6.0 [skip ci]
semantic-release-bot 6cf9428
ci: skip commit linting for dependabot
skeggse af5ade6
chore(deps-dev): bump bull from 3.19.0 to 3.19.1 (#290)
dependabot[bot] f3dbfe9
ci: fix workflow syntax
skeggse 5766a8b
ci: fix workflow syntax
skeggse 951ba92
docs: fix bull, bullmq example configs
skeggse ab4b806
fix: support redis configuration with bullmq (#294)
HalfdanJ fcd1b61
chore(release): 3.6.1 [skip ci]
semantic-release-bot bbacae8
feat(deps): remove dependency on `handlebars-helpers` (#302)
roychri ec5e979
chore(release): 3.7.0 [skip ci]
semantic-release-bot 0fa5d02
fix(dashboard): refresh page when adding a new job
roggervalf 78cf7c8
refactor(dashboard): change text on add job button
roggervalf 67eb758
refactor(dashboard): change text on add job button depending on shoul…
roggervalf 5b55500
refactor(dashboard): delete window location reload
roggervalf 8616383
feat: add contributing guidelines and working example
bradvogel 5722b55
fix(dashboard): change shouldHide condition
roggervalf a71feb0
Merge pull request #324 from roggervalf/fix-refresh-page
bradvogel 4cccff7
chore(release): 3.7.1 [skip ci]
semantic-release-bot d315cf9
docs: typo
bradvogel 1e1f891
fix(queuejobsbystate): apply descending ordering for jobs when using …
roggervalf c5d21a0
feat(queuejobsbystate): adding order dropdown
roggervalf d6d9825
style(queuejobsbystate): deleting extra >
roggervalf 306c3b6
chore(queuejobsbystate): consider wait and paused states when waiting
roggervalf bf5012e
chore(queuejobsbystate): skip order for bee-queue
roggervalf 85042b4
Merge pull request #327 from roggervalf/fix-desc-ordering-for-bull-jobs
bradvogel 48ea041
chore(release): 3.8.0 [skip ci]
semantic-release-bot d3eb2bf
feat(queuejobsbystate): retry bulk delayed jobs
roggervalf e5bdc74
Merge pull request #326 from bee-queue/brad/add-example
bradvogel f5fb4b3
chore(release): 3.9.0 [skip ci]
semantic-release-bot 856a49e
chore: merge branch 'master' into feature-retry-delayed-jobs
roggervalf 57dc1d6
fix(bee-queue): disable retry jobs button for bee-queue
roggervalf f11ec1f
chore(queuejobsbystate): apply and operator in retry jobs button
roggervalf da1ad97
feat(bull): adding bull in example
roggervalf db85035
chore: separating examples in different files
roggervalf 3ea933b
chore: use same reference in examples
roggervalf 1dac2d7
Merge pull request #330 from roggervalf/feature-retry-delayed-jobs
bradvogel 52c9b80
chore(release): 3.10.0 [skip ci]
semantic-release-bot d396dac
fix(bulkaction): handling retry logic in bulk
roggervalf 3dab54a
docs: fix readme instructions on how to run examples
bradvogel 7c0bc7c
feat: better example showing jobs move through states
bradvogel 17bc341
fix(deps): delete jsoneditor dependency
roggervalf 62f72cf
fix(bulkaction): use queuestate to differentiate logic
roggervalf 8e1fdbc
feat(bull): adding example for failed and completed jobs
roggervalf 2397839
Merge pull request #334 from roggervalf/fix-bulk-retry-action
bradvogel 6fb9bdb
chore(release): 3.11.0 [skip ci]
semantic-release-bot 2d98fee
fix(capitalize): using passed value to be capitalized
roggervalf d92e3b5
docs(readme): fixing example description for running scripts
roggervalf caf1fe8
docs(readme): adding badges for downloads, version, code style and se…
roggervalf 48ca96a
feat(jobdetails): showing processed on and finished on
roggervalf 982bf6f
Merge pull request #337 from bee-queue/brad/better-example
bradvogel 10f242a
Merge pull request #336 from bee-queue/bradvogel-patch-1
bradvogel 440cbbe
chore(release): 3.12.0 [skip ci]
semantic-release-bot 4c7643c
Merge pull request #339 from roggervalf/fix-capitalize-function
bradvogel 1ddfaa6
chore(release): 3.13.0 [skip ci]
semantic-release-bot 2e88919
feat(jobdetails): adding executes at detail
roggervalf 3f2ee6a
refactor(jobdetails): using else if statement
roggervalf f783416
chore(examples): adding delayed jobs
roggervalf 03b4932
feat(jobdetails): support executes at for bee queue
roggervalf 3629847
chore: delete one comment
roggervalf bef9feb
Merge pull request #340 from roggervalf/feat-executes-at
bradvogel ca4fefc
chore(release): 3.14.0 [skip ci]
semantic-release-bot 8ebd5c0
fix(queuejobsbystate): bring logs only in job page
roggervalf 3418a41
refactor(jobdetails): show logs when it is present
roggervalf eb12399
feat(bull): adding log message in bull example
roggervalf b4b6a7d
refactor(handlebars): gettimestamp is used in getdelay
roggervalf 2d199fc
Merge pull request #341 from roggervalf/fix-performance-job-details
bradvogel 30dff30
chore(release): 3.15.0 [skip ci]
semantic-release-bot 3f68dc1
feat: add optional custom css
evolkmann f740844
chore: run prettier
evolkmann 71f42b4
docs: remove unneeded slash
bradvogel 3d0a4d1
fix: wrong "execute at" date
bradvogel 653bc7c
feat: simpler labels
bradvogel 2baea13
chore: add PR template
bradvogel b3d1d50
chore: ignore sublime IDE file
bradvogel 73031dd
feat(bull): add button to promote delayed job
roggervalf 15407e4
chore(bullmq): adding delayedJob in example
roggervalf 7246479
chore: remove customCssFrom examples; add to list of optional params
evolkmann bbcf037
Merge pull request #347 from evolkmann/feat/custom-css
bradvogel d5236b3
chore(release): 3.16.0 [skip ci]
semantic-release-bot 1f42b31
Merge pull request #350 from bee-queue/brad/fix-executes-at
bradvogel b5dae38
chore(release): 3.17.0 [skip ci]
semantic-release-bot 98649ea
Merge pull request #352 from bee-queue/brad/add-ignore
bradvogel 496c35f
Merge pull request #351 from bee-queue/brad/add-pr-template
bradvogel 4b98628
fix: fixes misplaced parameters
bradvogel f616143
chore(deps): adding bullmq in dependencies for new example
roggervalf b5e3651
feat(customjspath): customize layout by custom script
roggervalf 36e6a84
style: addressing styled changes
roggervalf 15495a6
chore: adding example
roggervalf 4827e5d
style: addressing styled changes
roggervalf 94d3bf8
chore: ignore formatting the github template
bradvogel 368501b
Merge pull request #359 from bee-queue/brad/fix-options
bradvogel cceaa8e
chore(release): 3.17.1 [skip ci]
semantic-release-bot 1a5661c
fix: solve merge conflicts
roggervalf 4484f3e
fix: merge conflicts
roggervalf 6a117bc
refactor(bullmq): adding processor in worker
roggervalf fabdae3
fix: merge conflicts
roggervalf 1ce7788
fix: merge conflicts
roggervalf 04e87f2
fix(bull): link reference
roggervalf b654e8d
Merge pull request #356 from roggervalf/external-links
bradvogel 485aef8
chore(release): 3.18.0 [skip ci]
semantic-release-bot b66eb19
Merge pull request #353 from roggervalf/feat-promote-button
bradvogel 79a38b1
chore(release): 3.19.0 [skip ci]
semantic-release-bot a77a0f0
chore(deps): adding husky, pretty-quick and lint-staged
roggervalf cf9771b
style(lint): adding new eslint config
roggervalf 3c5d0cb
Merge pull request #360 from roggervalf/set-husky
bradvogel 65b0ec1
docs: fix typo
bradvogel c0e0d59
feat(promote): adding Promote Jobs button
roggervalf affb73f
Merge pull request #363 from roggervalf/bulk-promote
bradvogel 4914b10
fix(lintstage): applying eslint only to js to avoid conflicts with ch…
roggervalf 2dfc0a5
Merge pull request #365 from roggervalf/fix-ci
bradvogel a299dd4
chore(release): 3.20.0 [skip ci]
semantic-release-bot b8e840c
Merge pull request #362 from bee-queue/bradvogel-patch-1
bradvogel f374f98
fix(jsoneditor): adding map file
roggervalf 77bbd2a
Merge pull request #366 from roggervalf/fix-jsoneditor-warning
bradvogel d9df84c
chore(release): 3.20.1 [skip ci]
semantic-release-bot 8832821
feat(bullmq): support waiting-children state
roggervalf bdb8d07
refactor(queujobsbystate): passing queue in isValidState
roggervalf 43cbf77
Merge pull request #389 from roggervalf/feat-support-waiting-children…
bradvogel 5673ca9
chore(release): 3.21.0 [skip ci]
semantic-release-bot 5a62529
fix(deps): upgrading handlebars to 4.7.7
roggervalf cf9ad47
chore: merge with master
roggervalf 3651d52
fix(bull): consider paused state
roggervalf 019f7f5
feat(bull): adding pause queue button
roggervalf 4e746cb
chore: delete comments
roggervalf da783af
feat(bullmq): provide support for flow creation
roggervalf 6755017
docs(readme): adding documentation for flows
roggervalf e2b20f3
feat(flow-details): add redis statistics
roggervalf 3b19899
chore(dashboard): changing confirm messages
roggervalf f551707
refactor(queue-details): consider isPaused only for bull and bullmq
roggervalf 08bfc7f
Merge pull request #391 from roggervalf/fix-handlebars
bradvogel 4afadae
chore(release): 3.22.0 [skip ci]
semantic-release-bot 6b6020a
refactor: addressing comments and merge conflicts
roggervalf 27f50e2
docs: change typo
roggervalf 74a4058
refactor(queu-jobs-by-state): reorder sidebar options
roggervalf ff3ca32
Merge pull request #392 from roggervalf/feat-flows-view
bradvogel 7d5b1bf
chore(release): 3.23.0 [skip ci]
semantic-release-bot c8d24c5
feat(bootstrap): upgrade to v4.6.0
valvfr ffb1c98
Merge pull request #400 from roggervalf/upgrade-bootstrap
bradvogel 3ef430f
chore(release): 3.24.0 [skip ci]
semantic-release-bot 8341174
fix(job-details): show progress for bullmq
roggervalf 9c5e220
refactor(bee): delete unused variable
roggervalf 7ac27b1
chore: merge with master
roggervalf db96202
Merge pull request #397 from roggervalf/fix-progress-bar
bradvogel 05b61d6
chore(release): 3.24.1 [skip ci]
semantic-release-bot 61d93e2
feat: initial changes for displaying parentJob and childrenJobs in Jo…
bbd2317
feat(parent-children): implement perma-link for bullmq
valvfr 40e177f
feat(job-details): add pagination options in getDependencies
roggervalf 8e4e075
Merge pull request #404 from roggervalf/add-parent-children-to-job-de…
bradvogel 3a26602
chore(release): 3.25.0 [skip ci]
semantic-release-bot 01f50b9
chore: merge with master
roggervalf 13a0dc5
chore(bullmq): upgrade dependency
roggervalf 78a52d7
chore(job-details): set 25 as min count
roggervalf 71bbb9d
feat(job-details): add children counters
4887bc9
Merge pull request #407 from roggervalf/add-childrens-count
bradvogel 15fe9b8
chore(release): 3.26.0 [skip ci]
semantic-release-bot a76f30b
chore: fix merge conflicts
roggervalf fbb09e3
Merge pull request #406 from roggervalf/use-pagination-children
bradvogel 55c1f7f
chore(release): 3.27.0 [skip ci]
semantic-release-bot d3fa754
feat(layout): add treeview
roggervalf eb93a60
feat(tree-view): add tree view when creating a flow
roggervalf 59b0423
feat(flow): add search button to get a flow tree
roggervalf 101d197
Merge pull request #408 from roggervalf/jobs-relation-page-tree-view-…
bradvogel 56f2748
chore(release): 3.28.0 [skip ci]
semantic-release-bot 07b6f3d
feat(tree-view): use perma links on nodes
roggervalf 3cd0a65
refactor(tree-view): allow clickable tree nodes with links
roggervalf ca4e617
refactor(add-flow): add perma link on tree view
roggervalf 433e2e5
refactor(flow-details): apply form-group from bootstrap
roggervalf 795317c
chore: delete comments
roggervalf 7a15724
Merge pull request #410 from roggervalf/perma-link-on-tree-view
bradvogel 40002cb
chore(release): 3.29.0 [skip ci]
semantic-release-bot 0b60010
fix(job-details): encodeURI of job ID for URL
olliechick f8c80a9
Merge pull request #417 from olliechick/master
bradvogel 73a094c
chore(release): 3.29.1 [skip ci]
semantic-release-bot 73c8c7a
Revert "Feat bootstrap: upgrade to v4.6.0"
bradvogel 3e71e51
Merge pull request #432 from bee-queue/revert-400-upgrade-bootstrap
bradvogel 596280c
fix: force new build
bradvogel f016481
chore(release): 3.29.2 [skip ci]
semantic-release-bot 3d941e3
Update CHANGELOG.md
bradvogel 81bf488
fix: 🐛 Update how Redis URL is passed to Bull
jonmast ddf5048
Merge pull request #438 from jonmast/fix-bull-url-config
bradvogel 4cccdb4
chore(release): 3.29.3 [skip ci]
semantic-release-bot 81f13a8
fix(deps): bump moment from 2.29.1 to 2.29.4 (#540)
dependabot[bot] eb66c04
chore(release): 3.29.4 [skip ci]
semantic-release-bot 229cfe3
fix(deps): bump minimist from 1.2.5 to 1.2.6 (#507)
dependabot[bot] df050c9
chore(release): 3.29.5 [skip ci]
semantic-release-bot ab7e423
chore(deps): bump semver-regex from 3.1.2 to 3.1.4 (#531)
dependabot[bot] e4d03db
chore(deps): bump path-parse from 1.0.6 to 1.0.7 (#433)
dependabot[bot] 8e664fd
chore(deps): bump trim-newlines from 3.0.0 to 3.0.1 (#401)
dependabot[bot] 5c7827b
chore(deps): bump trim-off-newlines from 1.0.1 to 1.0.3 (#521)
dependabot[bot] 12c6b46
chore(deps): bump tar from 6.1.0 to 6.1.11 (#520)
dependabot[bot] 818a3ef
chore(deps): bump @npmcli/git from 2.0.6 to 2.1.0 (#549)
dependabot[bot] 03ed978
chore(deps): bump @npmcli/arborist from 2.3.0 to 2.10.0 (#522)
dependabot[bot] ade08fd
chore(deps-dev): bump @semantic-release/npm from 7.1.0 to 7.1.3 (#378)
dependabot[bot] 904ca9a
chore(deps-dev): bump eslint-config-prettier from 8.1.0 to 8.5.0 (#496)
dependabot[bot] 996a2eb
chore(deps-dev): bump eslint-plugin-prettier from 3.3.1 to 3.4.1 (#435)
dependabot[bot] 77ebb19
chore(deps-dev): bump semantic-release from 17.4.2 to 17.4.7 (#551)
dependabot[bot] c109e47
chore(deps): bump express from 4.17.1 to 4.18.1 (#552)
dependabot[bot] 5a9cebe
chore(deps): bump node-fetch from 2.6.1 to 2.6.7 (#519)
dependabot[bot] b77820f
chore(deps): bump moment-timezone from 0.5.33 to 0.5.37 (#560)
dependabot[bot] 2beb7c4
chore(deps): bump tablesort from 5.2.1 to 5.3.0 (#554)
dependabot[bot] 0c4d1bf
chore(deps): bump body-parser from 1.19.0 to 1.20.0 (#558)
dependabot[bot] ecafc8d
chore(deps-dev): bump @semantic-release/git from 9.0.0 to 9.0.1 (#561)
dependabot[bot] f2f48d4
chore(deps-dev): bump @semantic-release/release-notes-generator (#553)
dependabot[bot] 76089fa
chore(deps-dev): bump bee-queue from 1.3.1 to 1.4.0 (#565)
dependabot[bot] 5927b68
chore(deps-dev): bump @semantic-release/github from 7.2.1 to 7.2.3 (#…
dependabot[bot] 5e40ca1
chore(deps-dev): bump pretty-quick from 3.1.0 to 3.1.3 (#568)
dependabot[bot] 29528cf
feat(bull): support removing repeatable jobs (#574)
roggervalf c72a106
chore(release): 3.30.0 [skip ci]
semantic-release-bot f406750
fix(remove-repeatable): consider old versions of bull (#580)
roggervalf 7f8b7c9
chore(release): 3.30.1 [skip ci]
semantic-release-bot c27c3e2
chore(deps): bump ansi-regex and ansi-regex (#576)
dependabot[bot] 6c5871f
fix(qs): security patches on body-parser and express dependencies (#593)
elsilentforce bfba57f
chore(release): 3.30.2 [skip ci]
semantic-release-bot d41ecc3
chore(deps): bump qs from 6.5.2 to 6.5.3 (#597)
dependabot[bot] 8b6edae
fix(bullmq): consider delayed markers (#605) fixes #600
roggervalf 790f623
chore(release): 3.30.3 [skip ci]
semantic-release-bot 387e3ac
fix(mounting): differentiate base and appBase paths when disableListe…
roggervalf d2ea2ba
chore(release): 3.30.4 [skip ci]
semantic-release-bot 23827ae
chore(deps): bump http-cache-semantics from 4.1.0 to 4.1.1 (#614)
dependabot[bot] d87df77
chore(deps): bump minimatch from 3.0.4 to 3.1.2 (#590)
dependabot[bot] 5853b31
chore: use redis container for testing (#663)
roggervalf 03475e7
chore(bullmq): support prioritized job state (#662)
patrickheeney 9a7541c
feat(bullmq): support prioritized state (#664)
roggervalf 610a503
chore(release): 4.0.0 [skip ci]
semantic-release-bot a76ed5f
fix(job-details): omit scripts attribute to stringify jobs (#665) fix…
roggervalf 97164ed
chore(release): 4.0.1 [skip ci]
semantic-release-bot df1ab37
feat(bullmq): support removing repeatable jobs (#667)
roggervalf 4156a2a
chore(release): 4.1.0 [skip ci]
semantic-release-bot f6c0b11
Merge remote-tracking branch 'upstream/master' into ALLI-10561-alli-d…
JZhang502 961ae7d
added npm auth token to unit tests
JZhang502 6133894
ran prettier
JZhang502 0f835b1
added commitlint rules
JZhang502 5ebaea6
removed commitlinter default rules
JZhang502 6a43e02
delete add job button
JZhang502 063f09a
adjust the else if order so that the datasource name is reflected in …
JZhang502 0830594
added parseRedisInfo function since bullMq switches to ioRedis
JZhang502 0e5a93f
deleting codeowners file
JZhang502 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
module.exports = { | ||
env: { | ||
node: true, | ||
es6: true, | ||
browser: true, | ||
commonjs: true, | ||
jquery: true, | ||
}, | ||
parserOptions: { | ||
ecmaVersion: 2018, | ||
}, | ||
plugins: ['prettier'], | ||
extends: ['prettier'], | ||
overrides: [ | ||
{ | ||
files: ['lib/**'], | ||
rules: { | ||
'max-len': 'error', | ||
}, | ||
}, | ||
{ | ||
files: ['benchmark/**', 'examples/**'], | ||
parserOptions: { | ||
ecmaVersion: 8, | ||
}, | ||
rules: { | ||
'no-console': 'off', | ||
}, | ||
}, | ||
{ | ||
files: ['test/**'], | ||
parserOptions: { | ||
ecmaVersion: 2017, | ||
sourceType: 'module', | ||
}, | ||
rules: { | ||
'handle-callback-err': 'warn', | ||
'no-shadow': 'off', | ||
'no-warning-comments': 'off', | ||
}, | ||
}, | ||
], | ||
rules: { | ||
strict: 'off', | ||
}, | ||
}; |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/.github @skeggse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: npm | ||
directory: '/' | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 10 | ||
versioning-strategy: widen | ||
commit-message: | ||
prefix: chore | ||
include: scope |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#### Changes Made | ||
|
||
#### Potential Risks | ||
<!--- What can go wrong with this change? How will these changes affect adjacent code/features? How will we handle any adverse issues? ---> | ||
|
||
#### Test Plan | ||
<!--- How do we know this PR does what it's supposed to do? How do we ensure that adjacent code/features are still working? How do we evaluate the performance implications of this PR?---> | ||
|
||
#### Checklist | ||
|
||
- [ ] I've increased test coverage | ||
- [ ] Since this is a public repository, I've checked I'm not publishing private data in the code, commit comments, or this PR. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# This workflow will do a clean install of node dependencies, and run the linter | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
|
||
name: Node.js CI | ||
|
||
on: | ||
# Any additional branches here will currently be treated as release (or maintenance) branches. | ||
# if the need to run jobs on other branches emerges, then the release job will need a better | ||
# condition expression. | ||
push: | ||
branches: [master, 2.x] | ||
pull_request: | ||
branches: [master, 2.x] | ||
|
||
jobs: | ||
lint: | ||
# https://github.community/t/github-actions-does-not-respect-skip-ci/17325/9 | ||
if: "!contains(github.event.head_commit.message, '[skip ci]')" | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
NPM_AUTH_TOKEN: '${{ secrets.NPM_AUTH_TOKEN }}' | ||
|
||
strategy: | ||
matrix: | ||
node-version: [10.x, 12.x, 14.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
# For commitlint; ideally this would only check out the feature branch's history, but | ||
# that's not currently an option. | ||
fetch-depth: ${{ github.event_name == 'push' }} | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: set up npmrc | ||
run: echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_AUTH_TOKEN}}" > .npmrc | ||
- run: npm ci | ||
- run: npm run ci --if-present | ||
- run: npm run ci:commitlint | ||
if: "github.event_name != 'push' && github.actor != 'dependabot[bot]'" | ||
env: | ||
GITHUB_BASE_REF: ${{ github.event.pull_request.base.ref }} | ||
|
||
release: | ||
# https://github.community/t/github-actions-does-not-respect-skip-ci/17325/9 | ||
if: "github.event_name == 'push' && !contains(github.event.head_commit.message, '[skip ci]')" | ||
runs-on: ubuntu-latest | ||
|
||
needs: [lint] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
# Necessary to prevent the checkout action from writing credentials to .git/config, which | ||
# semantic-release attempts to use to push despite those credentials being denied the | ||
# push. | ||
# See https://github.com/semantic-release/git/issues/196#issuecomment-601310576. | ||
persist-credentials: false | ||
- name: Use Node.js 14.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 14.x | ||
- name: set up npmrc | ||
run: echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_AUTH_TOKEN}}" > .npmrc | ||
- run: npm ci | ||
- name: Release | ||
run: npx semantic-release -b master,2.x | ||
env: | ||
# Need to use a separate token so we can push to the protected default branch. | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
NPM_AUTH_TOKEN: '${{ secrets.NPM_AUTH_TOKEN }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
node_modules | ||
package-lock.json | ||
*.DS_Store | ||
.vscode | ||
.idea | ||
*.tern-port | ||
*.sublime-workspace | ||
dump.rdb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npm run pretty:quick | ||
npm run lint:staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"*.{js}": "node_modules/.bin/eslint . --ignore-path ./.prettierignore --fix" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
*.hbs | ||
*.min.js | ||
*.min.css | ||
pull_request_template.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"semi": true, | ||
"singleQuote": true, | ||
"trailingComma": "es5", | ||
"bracketSpacing": false, | ||
"arrowParens": "always", | ||
"endOfLine": "lf" | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
id get rid of this or change it