Skip to content

Commit

Permalink
Release v1.2.1 (#53)
Browse files Browse the repository at this point in the history
* ci: use windows and ubuntu workflows in haraka/.github
  • Loading branch information
msimerson authored Jul 7, 2022
1 parent 0b615e6 commit 2afc480
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 33 deletions.
30 changes: 6 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,10 @@ jobs:
uses: haraka/.github/.github/workflows/coverage.yml@master
secrets: inherit

test:
needs: [ lint, get-lts ]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
node-version: ${{ fromJson(needs.get-lts.outputs.active) }}
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
ubuntu:
needs: [ lint ]
uses: haraka/.github/.github/workflows/ubuntu.yml@master

get-lts:
runs-on: ubuntu-latest
steps:
- id: get
uses: msimerson/node-lts-versions@v1
outputs:
active: ${{ steps.get.outputs.active }}
lts: ${{ steps.get.outputs.lts }}
windows:
needs: [ lint ]
uses: haraka/.github/.github/workflows/windows.yml@master
2 changes: 1 addition & 1 deletion .release
Submodule .release updated 1 files
+3 −0 finish.sh
6 changes: 6 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
### Unreleased


### [1.2.1] - 2022-07-07

- ci: use windows & ubuntu workflows in haraka/.github


### [1.2.0] - 2022-06-27

- dep: replace message-stream with email-message
Expand Down Expand Up @@ -169,3 +174,4 @@
[1.0.35]: https://github.com/haraka/haraka-test-fixtures/releases/tag/1.0.35
[1.1.0]: https://github.com/haraka/haraka-test-fixtures/releases/tag/1.1.0
[1.2.0]: https://github.com/haraka/test-fixtures/releases/tag/1.2.0
[1.2.1]: https://github.com/haraka/test-fixtures/releases/tag/1.2.1
4 changes: 2 additions & 2 deletions lib/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class Plugin {
}

try {
return '"use strict";' + fs.readFileSync(pi_path);
return `"use strict";${fs.readFileSync(pi_path)}`;
}
catch (err) {
throw `Loading plugin ${this.name} failed: ${err}`;
Expand Down Expand Up @@ -198,7 +198,7 @@ class Plugin {
}

haraka_require (name) {
return require('./' + name);
return require(`./${name}`);
}
}

Expand Down
4 changes: 2 additions & 2 deletions lib/util_hmailitem.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ exports.playTestSmtpConversation = function (hmail, socket, test, playbook, call
test.ok(expected.test(line), expected.description || `Expected that line works with func: ${expected.test}`);
}
else {
test.equals(expected.test + '\r\n', line, expected.description || `Expected that line equals: ${expected.test}`);
test.equals(`${expected.test}\r\n`, line, expected.description || `Expected that line equals: ${expected.test}`);
}
if (expected.end_test === true) {
setTimeout(function () {
Expand All @@ -136,7 +136,7 @@ exports.playTestSmtpConversation = function (hmail, socket, test, playbook, call
setTimeout(function () {
let nextMessageFromServer;
while (false != (nextMessageFromServer = getNextEntryFromPlaybook('remote', playbook))) {
socket.emit('line', nextMessageFromServer.line + '\r\n');
socket.emit('line', `${nextMessageFromServer.line}\r\n`);
}
}, 0);
}
Expand Down
6 changes: 3 additions & 3 deletions lib/vm_harness.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const vm = require('vm');

/* eslint no-path-concat: "off" */
const dir_paths = [
__dirname + '/../../../', // for Haraka/tests/plugins
__dirname + '/', // for haraka-test-fixtures/test
`${__dirname}/../../../`, // for Haraka/tests/plugins
`${__dirname}/`, // for haraka-test-fixtures/test
];

function dot_files (element) {
Expand All @@ -14,7 +14,7 @@ function dot_files (element) {

function find_haraka_lib (id) {
for (let i = 0; i < dir_paths.length; i++) {
const dirPath = dir_paths[i] + id + `.js`;
const dirPath = `${dir_paths[i]}${id}.js`;
// console.log('dirPath: ' + dirPath);
try {
const stats = fs.statSync(dirPath);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "haraka-test-fixtures",
"license": "MIT",
"description": "Haraka Test Fixtures",
"version": "1.2.0",
"version": "1.2.1",
"repository": {
"type": "git",
"url": "[email protected]:haraka/test-fixtures.git"
Expand Down

0 comments on commit 2afc480

Please sign in to comment.