Skip to content

Commit

Permalink
feat: update for compat with redis 4 (#22)
Browse files Browse the repository at this point in the history
- ci: replace travis/appveyor with GHA
- dep(redis): 2 -> 4
- dep(pi-redis): * -> 2
- dep(eslint): 4 -> 8
- dep(url): drop npm url package, use builtin
- test: replace node_unit with mocha
  • Loading branch information
msimerson authored May 26, 2022
1 parent 45a5c48 commit b3479c0
Show file tree
Hide file tree
Showing 14 changed files with 443 additions and 489 deletions.
4 changes: 2 additions & 2 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins:
plugins:
eslint:
enabled: true
channel: "eslint-4"
channel: "eslint-8"
config:
config: ".eslintrc.yaml"
4 changes: 4 additions & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@ env:
node: true
es6: true
mocha: true
es2020: true

plugins: [ haraka ]

extends: [ eslint:recommended, plugin:haraka/recommended ]

root: true

rules:
indent: [2, 2, { SwitchCase: 1 } ]

globals:
OK: true
CONT: true
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

on:
push:

env:
CI: true

jobs:
lint:
uses: haraka/.github/.github/workflows/lint.yml@master

# coverage:
# uses: haraka/.github/.github/workflows/coverage.yml@master
# secrets: inherit

test:
needs: lint
runs-on: ${{ matrix.os }}
services:
redis:
image: redis
ports:
- 6379:6379
strategy:
matrix:
os: [ ubuntu-latest ]
node-version: [ 14, 16, 18 ]
fail-fast: false

steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
name: Node ${{ matrix.node-version }} on ${{ matrix.os }}
with:
node-version: ${{ matrix.node-version }}

- run: npm install
- run: npm test
14 changes: 14 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: CodeQL

on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '18 7 * * 4'

jobs:
codeql:
uses: haraka/.github/.github/workflows/codeql.yml@master
14 changes: 14 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: publish

on:
push:
branches:
- master

env:
CI: true

jobs:
publish:
uses: haraka/.github/.github/workflows/publish.yml@master
secrets: inherit
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ jspm_packages

# Optional REPL history
.node_repl_history

package-lock.json
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

14 changes: 14 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,32 @@

### 1.0.4 - 2022-05-24

- dep(redis): 2 -> 4
- dep(pi-redis): * -> 2
- dep(eslint): 4 -> 8
- dep(url): drop npm url package, use builtin
- test: node_unit -> mocha
- ci: replace travis/appveyor with GHA
- ci(cov): replace nyc with c8


### 1.0.3 - 2019-04-11

- test fix for unitialized redis config block


### 1.0.2 - 2018-03-05

- for MX entries, previously only full email address matches in the file were parsed for LMTP/SMTP routes. Now all MX entries are parsed (email file, email domain, email redis, and domain redis) for URIs.
- use es6 arrow functions
- refactored the functions in rcpt() into separate functions (simplify, more testable)


### 1.0.1 - 2017-08-19

- enable Redis install on AppVeyor CI testing


### 1.0.0 - 2017-07-28

- imported from haraka/plugins/rcpt_to.routes
22 changes: 0 additions & 22 deletions appveyor.yml

This file was deleted.

Loading

0 comments on commit b3479c0

Please sign in to comment.