-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ES6 arrow funcs, dep version bumps, test framework (#51)
* es6: use arrow functions * es6: object shorthand * bump versions for js-yaml & hjson * lint: allow console * lint: reduce unused var severity * replace nodeunit (deprecated) with mocha * set up github workflows/actions * remove Travis & Appveyor configs
- Loading branch information
Showing
28 changed files
with
1,290 additions
and
1,224 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 |
---|---|---|
|
@@ -12,3 +12,5 @@ root: true | |
|
||
rules: | ||
indent: [2, 4, {"SwitchCase": 1}] | ||
no-console: 0 | ||
no-unused-vars: 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,37 @@ | ||
name: Windows CI Tests | ||
|
||
on: [push] | ||
|
||
# no docker/images support on Windows (currently), so run w/o Redis | ||
# also, stack run commands so test doesn't begin before install completes | ||
|
||
jobs: | ||
|
||
ci-test-win: | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ windows-latest ] | ||
node-version: [8.x, 10.x, 12.x] | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
name: git checkout | ||
with: | ||
fetch-depth: 1 | ||
|
||
- uses: actions/setup-node@v1 | ||
name: Use Node.js ${{ matrix.node-version }} | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: npm install and test | ||
run: | | ||
npm install | ||
npm run test | ||
env: | ||
CI: true |
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,41 @@ | ||
name: Ubuntu CI Tests | ||
|
||
on: [ push ] | ||
|
||
jobs: | ||
|
||
ci-test: | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
node-version: [8.x, 10.x, 12.x] | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
name: git checkout | ||
with: | ||
fetch-depth: 1 | ||
|
||
- uses: actions/setup-node@v1 | ||
name: Use Node.js ${{ matrix.node-version }} | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: npm install | ||
run: npm install | ||
|
||
- name: Run test suite | ||
run: npm run test | ||
|
||
env: | ||
CI: true | ||
|
||
services: | ||
redis: | ||
image: redis | ||
ports: | ||
- 6379/tcp |
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,32 @@ | ||
on: [ pull_request ] | ||
|
||
name: Test Coverage | ||
|
||
jobs: | ||
|
||
coverage: | ||
name: Codecov | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@master | ||
name: Checkout haraka-config | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Use Node.js 10 | ||
uses: actions/setup-node@master | ||
with: | ||
version: 10.x | ||
|
||
- name: install, run | ||
run: | | ||
npm install | ||
npm install nyc codecov | ||
npm run cover | ||
- name: Coveralls | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.github_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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Lint | ||
|
||
on: [ push ] | ||
|
||
jobs: | ||
|
||
lint: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [ 12.x ] | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
name: git checkout | ||
with: | ||
fetch-depth: 1 | ||
|
||
- uses: actions/setup-node@v1 | ||
name: Use Node.js ${{ matrix.node-version }} | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: npm install | ||
run: npm install | ||
|
||
- name: Lint using eslint | ||
run: npm run lint | ||
|
||
env: | ||
CI: true |
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
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.