-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Setup github actions #1553
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
Merged
Merged
Setup github actions #1553
Changes from 13 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
d8ce19a
chore: prevent git from ignoring src/index.js file
tux-tn cb4576a
chore: remove unused exclusion from nyc config
tux-tn 6de8ec2
chore: replace travis-ci with github actions
tux-tn 0d821b8
chore: fix issue with github workflow config
tux-tn 5dfd95d
chore: fix condition for coverage generation and sending
tux-tn bcd1105
chore: treat node version as int
tux-tn 501d9d8
docs: replace travis with github actions badge
cc2c22d
chore: add npm publish github action
tux-tn a6d9d43
chore: remove auto-generated files
tux-tn 0f91d6c
chore: improve github actions styles
tux-tn 272cedf
chore: use correct repo url to prevent unecessary redirect
tux-tn de4245c
chore: lint package.json file
tux-tn 5f8d969
chore: add new line at end of file
tux-tn 738cf60
feat(isMobilePhone): update de-CH, add fr-CH, it-CH locales (#1554)
edcd161
feat(isLicensePlate): new validator 🎉 (#1495)
firlus 8831db3
fix(isTaxID): fix el-GR locale when checksum is 10 (#1529)
dspinellis 1b85829
feat(isMobileNumber): add support new telco numbers for VN locale (#1…
kyled7 5afdde7
chore: set a fixed ubuntu version instead of relying on latest
33f6cc5
Merge branch 'upstream/master' into chore/Actions
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 contains hidden or 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,32 @@ | ||
| name: CI | ||
| on: | ||
| push: | ||
| branches: [master] | ||
| pull_request: | ||
| branches: [master] | ||
| jobs: | ||
| test: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| node-version: [14, 12, 10, 8, 6] | ||
| steps: | ||
| - name: Setup Node.js ${{ matrix.node-version }} | ||
| uses: actions/setup-node@v2-beta | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| check-latest: true | ||
| - name: Checkout Repository | ||
| uses: actions/checkout@v2 | ||
| - name: Install Dependencies | ||
| run: npm install | ||
| - name: Run Tests | ||
| run: npm test | ||
| - if: matrix.node-version == 14 | ||
| name: Generate coverage file | ||
| run: npm run test:ci > coverage.lcov | ||
| - if: matrix.node-version == 14 | ||
| name: Send coverage info to Codecov | ||
| uses: codecov/codecov-action@v1 | ||
| with: | ||
| file: ./coverage.lcov | ||
This file contains hidden or 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,24 @@ | ||
| name: NPM Publish | ||
| on: | ||
| release: | ||
| types: [created] | ||
| jobs: | ||
| publish: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Setup Node.js 14 | ||
| uses: actions/setup-node@v2-beta | ||
| with: | ||
| node-version: 14 | ||
| check-latest: true | ||
| registry-url: https://registry.npmjs.org/ | ||
| - name: Checkout Repository | ||
| uses: actions/checkout@v2 | ||
| - name: Install Dependencies | ||
| run: npm install | ||
| - name: Run Tests | ||
| run: npm test | ||
| - name: Publish Package to NPM Registry | ||
| run: npm publish | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{secrets.NPM_SECRET}} |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -7,6 +7,6 @@ package-lock.json | |
| yarn.lock | ||
| /es | ||
| /lib | ||
| /index.js | ||
| validator.js | ||
| validator.min.js | ||
| index.js | ||
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -5,9 +5,5 @@ | |
| ], | ||
| "include": [ | ||
| "src/**/*.js" | ||
| ], | ||
| "exclude": [ | ||
| "validator.js", | ||
| "lib/**/*.js" | ||
| ] | ||
| } | ||
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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,7 +1,7 @@ | ||
| { | ||
| "name": "validator-js", | ||
| "main": "validator.js", | ||
| "homepage": "https://github.com/chriso/validator.js", | ||
| "homepage": "https://github.com/validatorjs/validator.js", | ||
| "authors": [ | ||
| "Chris O'Hara <[email protected]>" | ||
| ], | ||
|
|
||
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -3,7 +3,7 @@ | |
| "description": "String validation and sanitization", | ||
| "version": "13.5.1", | ||
| "sideEffects": false, | ||
| "homepage": "https://github.com/chriso/validator.js", | ||
| "homepage": "https://github.com/validatorjs/validator.js", | ||
| "files": [ | ||
| "index.js", | ||
| "es", | ||
|
|
@@ -25,18 +25,15 @@ | |
| ], | ||
| "author": "Chris O'Hara <[email protected]>", | ||
| "contributors": [ | ||
| { | ||
| "name": "Anthony Nandaa", | ||
| "url": "https://github.com/profnandaa" | ||
| } | ||
| "Anthony Nandaa (https://github.com/profnandaa)" | ||
| ], | ||
| "main": "index.js", | ||
| "bugs": { | ||
| "url": "https://github.com/chriso/validator.js/issues" | ||
| "url": "https://github.com/validatorjs/validator.js/issues" | ||
| }, | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://github.com/chriso/validator.js.git" | ||
| "url": "git+https://github.com/validatorjs/validator.js.git" | ||
| }, | ||
| "devDependencies": { | ||
| "@babel/cli": "^7.0.0", | ||
|
|
||
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.
Should we use some specific version instead of
latestfor stability?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.
latesttag is for the latest Ubuntu LTS version but i agree with you, i will set it toubuntu-20.04