Skip to content

Commit

Permalink
ci: restore CI testing to working order
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Apr 7, 2022
1 parent c1258c2 commit f7233fe
Show file tree
Hide file tree
Showing 11 changed files with 154 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
engines:
eslint:
enabled: true
channel: "eslint-4"
channel: "eslint-8"
config:
config: ".eslintrc.yaml"

Expand Down
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### system info

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.

echo "Haraka | $(haraka -v)"; echo " --- | :--- "; echo "Node | $(node -v)"; echo "OS | $(uname -a)"; echo "openssl | $(openssl version)"

### Expected behavior

### Observed behavior

### Steps to reproduce
11 changes: 11 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Fixes #

Changes proposed in this pull request:
-
-

Checklist:
- [ ] docs updated
- [ ] tests updated
- [ ] Changes.md updated
- [ ] package.json.version bumped
29 changes: 29 additions & 0 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Tests

on: [ push ]

env:
CI: true

jobs:

ci-test:

runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
node-version: [ 12, 14, 16 ]
fail-fast: false

steps:
- uses: actions/checkout@v2

- 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
32 changes: 32 additions & 0 deletions .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Test Coverage

# on: [ push ] # use this for non-plugins
# haraka-plugin-*, dummy event that never triggers
on: [ milestone ]

jobs:

coverage:

runs-on: ubuntu-latest

steps:

- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 14

- name: Install
run: |
npm install
npm install --no-save nyc codecov
- run: npx nyc --reporter=lcovonly npm test
env:
NODE_ENV: cov

- name: Submit to Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
26 changes: 26 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Lint

on: [ push ]

env:
CI: true

jobs:

lint:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [ 14 ]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
name: Node.js ${{ matrix.node-version }}
with:
node-version: ${{ matrix.node-version }}

- run: npm install
- run: npm run lint
37 changes: 37 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish

on:
release:
types: [ published ]

env:
node_version: 14

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: ${{ env.node_version }}
- run: npm install
- run: npm test

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v3
with:
node-version: ${{ env.node_version }}
registry-url: https://registry.npmjs.org
- run: npm install

- run: npm publish --ignore-scripts --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
language: node_js
node_js:
- "10"
- "12"
- "14"

services:
Expand Down
6 changes: 6 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

## 1.0.4 - 2022-04-07

- ci: restore to working order
-


## 1.0.3 - 2018-11-20

- Fix data hook #12
Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
[![Build Status][ci-img]][ci-url]
[![Code Climate][clim-img]][clim-url]
[![Greenkeeper badge][gk-img]][gk-url]
[![Windows Build Status][ci-win-img]][ci-win-url]
[![NPM][npm-img]][npm-url]
<!-- doesn't work in haraka plugins... yet. [![Code Coverage][cov-img]][cov-url]-->


# haraka-plugin-fcrdns
Expand Down Expand Up @@ -149,7 +147,5 @@ The iprev results are added to the Authentication-Results header.
[cov-url]: https://codecov.io/github/haraka/haraka-plugin-fcrdns
[clim-img]: https://codeclimate.com/github/haraka/haraka-plugin-fcrdns/badges/gpa.svg
[clim-url]: https://codeclimate.com/github/haraka/haraka-plugin-fcrdns
[gk-img]: https://badges.greenkeeper.io/haraka/haraka-plugin-fcrdns.svg
[gk-url]: https://greenkeeper.io/
[npm-img]: https://nodei.co/npm/haraka-plugin-fcrdns.png
[npm-url]: https://www.npmjs.com/package/haraka-plugin-fcrdns
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
environment:
nodejs_version: "10"
nodejs_version: "14"

install:
- ps: Install-Product node $env:nodejs_version
Expand Down

0 comments on commit f7233fe

Please sign in to comment.