Skip to content

Commit 51eb3ce

Browse files
committed
Initial commit
0 parents  commit 51eb3ce

20 files changed

+462
-0
lines changed

.codeclimate.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
engines:
2+
eslint:
3+
enabled: true
4+
channel: "eslint-8"
5+
config:
6+
config: ".eslintrc.yaml"
7+
8+
ratings:
9+
paths:
10+
- "**.js"

.eslintrc.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
env:
2+
node: true
3+
es6: true
4+
mocha: true
5+
es2020: true
6+
7+
plugins:
8+
- haraka
9+
10+
extends:
11+
- eslint:recommended
12+
- plugin:haraka/recommended
13+
14+
rules:
15+
indent: [2, 2, {"SwitchCase": 1}]
16+
17+
root: true
18+
19+
globals:
20+
OK: true
21+
CONT: true
22+
DENY: true
23+
DENYSOFT: true
24+
DENYDISCONNECT: true
25+
DENYSOFTDISCONNECT: true

.github/ISSUE_TEMPLATE.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### system info
2+
3+
Please report your OS, Node version, and Haraka version by running this shell script on your Haraka server and replacing this section with the output.
4+
5+
echo "Haraka | $(haraka -v)"; echo " --- | :--- "; echo "Node | $(node -v)"; echo "OS | $(uname -a)"; echo "openssl | $(openssl version)"
6+
7+
### Expected behavior
8+
9+
### Observed behavior
10+
11+
### Steps to reproduce

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Fixes #
2+
3+
Changes proposed in this pull request:
4+
-
5+
-
6+
7+
Checklist:
8+
- [ ] docs updated
9+
- [ ] tests updated
10+
- [ ] Changes.md updated
11+
- [ ] package.json.version bumped

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
2+
3+
version: 2
4+
updates:
5+
- package-ecosystem: "npm"
6+
directory: "/"
7+
schedule:
8+
interval: "weekly"
9+
allow:
10+
- dependency-type: production

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI
2+
3+
on: [ push ]
4+
5+
env:
6+
CI: true
7+
8+
jobs:
9+
10+
lint:
11+
uses: haraka/.github/.github/workflows/lint.yml@master
12+
13+
# coverage:
14+
# uses: haraka/.github/.github/workflows/coverage.yml@master
15+
# secrets: inherit
16+
17+
test:
18+
needs: [ lint, get-lts ]
19+
runs-on: ${{ matrix.os }}
20+
strategy:
21+
matrix:
22+
os: [ ubuntu-latest, windows-latest ]
23+
node-version: ${{ fromJson(needs.get-lts.outputs.active) }}
24+
fail-fast: false
25+
steps:
26+
- uses: actions/checkout@v3
27+
- uses: actions/setup-node@v3
28+
name: Node ${{ matrix.node-version }} on ${{ matrix.os }}
29+
with:
30+
node-version: ${{ matrix.node-version }}
31+
- run: npm install
32+
- run: npm test
33+
34+
get-lts:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- id: get
38+
uses: msimerson/node-lts-versions@v1
39+
outputs:
40+
active: ${{ steps.get.outputs.active }}
41+
lts: ${{ steps.get.outputs.lts }}

.github/workflows/codeql.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
schedule:
9+
- cron: '18 7 * * 4'
10+
11+
jobs:
12+
codeql:
13+
uses: haraka/.github/.github/workflows/codeql.yml@master

.github/workflows/publish.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: publish
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
env:
9+
CI: true
10+
11+
jobs:
12+
publish:
13+
uses: haraka/.github/.github/workflows/publish.yml@master
14+
secrets: inherit

.gitignore

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
6+
# Runtime data
7+
pids
8+
*.pid
9+
*.seed
10+
11+
# Directory for instrumented libs generated by jscoverage/JSCover
12+
lib-cov
13+
14+
# Coverage directory used by tools like istanbul
15+
coverage
16+
17+
# nyc test coverage
18+
.nyc_output
19+
20+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
21+
.grunt
22+
23+
# node-waf configuration
24+
.lock-wscript
25+
26+
# Compiled binary addons (http://nodejs.org/api/addons.html)
27+
build/Release
28+
29+
# Dependency directories
30+
node_modules
31+
jspm_packages
32+
33+
# Optional npm cache directory
34+
.npm
35+
36+
# Optional REPL history
37+
.node_repl_history
38+
39+
package-lock.json

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule ".release"]
2+
path = .release
3+
url = [email protected]:msimerson/.release.git

0 commit comments

Comments
 (0)