-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from vahidalizad/alpha
Alpha
- Loading branch information
Showing
42 changed files
with
8,592 additions
and
1,726 deletions.
There are no files selected for viewing
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
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,49 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '20' | ||
- run: npm ci | ||
env: | ||
CI: true | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: coverage | ||
path: coverage | ||
|
||
deploy: | ||
needs: test | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: npm ci | ||
- run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
# - name: Create GitHub Release | ||
# id: create_release | ||
# uses: actions/create-release@v1 | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# with: | ||
# tag_name: ${{ github.ref }} | ||
# release_name: Release ${{ github.ref }} | ||
# draft: false | ||
# prerelease: false |
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,23 @@ | ||
name: CI | ||
|
||
on: | ||
workflow_dispatch: | ||
branches: | ||
- alpha | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '20' | ||
- run: npm ci | ||
env: | ||
CI: true | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: coverage | ||
path: coverage |
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,4 +1,7 @@ | ||
.npmrc | ||
logs/ | ||
dist/ | ||
node_modules/ | ||
coverage/ | ||
.nyc_output/ | ||
.env |
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,29 @@ | ||
'use strict'; | ||
|
||
// This is a JavaScript-based config file containing every Mocha option plus others. | ||
// If you need conditional logic, you might want to use this type of config, | ||
// e.g. set options via environment variables 'process.env'. | ||
// Otherwise, JSON or YAML is recommended. | ||
|
||
module.exports = { | ||
diff: true, | ||
extension: ['js', 'cjs', 'mjs'], | ||
package: './package.json', | ||
reporter: 'spec', | ||
slow: '75', | ||
timeout: '2000', | ||
require: [ | ||
'@babel/register', | ||
'ts-node/register', | ||
// 'mocha-suppress-logs', | ||
'test/hooks.js', | ||
], | ||
globals: ['Parse'], | ||
extensions: ['ts', 'js'], | ||
exit: true, | ||
// delay: true, | ||
'check-leaks': true, | ||
sort: true, | ||
spec: 'test/**/*.spec.js', | ||
// 'watch-files': ['test/**/*.spec.js'], | ||
}; |
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,8 +1,13 @@ | ||
.github/ | ||
.vscode/ | ||
src/ | ||
.npmrc | ||
test/ | ||
logs/ | ||
coverage/ | ||
.nyc_output/ | ||
eslint.config.js | ||
.nycrc | ||
.babelrc | ||
.eslintrc.js | ||
.mocharc.js | ||
.gitignore | ||
.gitlab-ci.yml | ||
.prettierrc |
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,14 @@ | ||
{ | ||
"reporter": ["text", "lcov"], | ||
"exclude": [ | ||
"coverage/**", | ||
"test/**", | ||
"dist/**", | ||
"node_modules/**", | ||
"**/*.d.ts" | ||
], | ||
"extension": [".js", ".ts"], | ||
"require": ["@babel/register"], | ||
"sourceMap": true, | ||
"instrument": true | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.