Skip to content

Commit

Permalink
Merge pull request #28 from haraka/modernize
Browse files Browse the repository at this point in the history
replace appveyor & Travis with Github Actions
  • Loading branch information
msimerson authored Dec 15, 2020
2 parents 08ce9e3 + 7cd8439 commit b5b32e4
Show file tree
Hide file tree
Showing 11 changed files with 305 additions and 209 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci-test-win.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Plugin Tests - Windows

on: [ push, pull_request ]

jobs:

ci-test-win:

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

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

steps:
- uses: actions/checkout@v2
name: Checkout Plugin
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
35 changes: 35 additions & 0 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Plugin Tests

on: [ push, pull_request ]

jobs:

ci-test:

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

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

steps:
- uses: actions/checkout@v2
name: Checkout Plugin
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
32 changes: 32 additions & 0 deletions .github/workflows/coveralls.yml
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 Plugin
with:
fetch-depth: 1

- name: Use Node.js 12
uses: actions/setup-node@master
with:
node-version: 12.x

- name: install, run
run: |
npm install
npm install --no-save nyc codecov
npm run cover
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
33 changes: 33 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Lint

on: [ push, pull_request ]

jobs:

lint:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [ 12.x ]

steps:
- uses: actions/checkout@v2
name: Checkout Plugin
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
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

19 changes: 14 additions & 5 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,30 @@

## 1.1.3 - 2018-05-11
### 1.1.4 - 2020-12-14

- packaging updates
- replace Travis CI & AppVeyor for GH Actions


### 1.1.3 - 2018-05-11

- change unicode regexps to not escape latin chars #15


## 1.1.2 - 2017-06-25
### 1.1.2 - 2017-06-25

- remove dev dependency versions

## 1.1.1

### 1.1.1

- Fix a bug when using the constructor to generate an address

## 1.1.0

### 1.1.0

- support IDN email addresses

## 1.0.0 - 2016-12-08

### 1.0.0 - 2016-12-08

- replaced null host or user values with empty strings
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ for stricter or less strict matching.

To change the behaviour mess with the following variables:

var adr = require('address-rfc2821');
const adr = require('address-rfc2821');
// Now change one of the following. Note they are RegExp objects NOT strings.
adr.atom_expr;
adr.address_literal_expr;
Expand All @@ -107,11 +107,11 @@ License
This module is MIT licensed.


[ci-img]: https://travis-ci.org/haraka/node-address-rfc2821.svg?branch=master
[ci-url]: https://travis-ci.org/haraka/node-address-rfc2821
[ci-img]: https://github.com/haraka/node-address-rfc2821/workflows/Test%20Coverage/badge.svg
[ci-url]: https://github.com/haraka/node-address-rfc2821/actions?query=workflow%3A%22Test+Coverage%22
[dep-img]: https://david-dm.org/haraka/node-address-rfc2821.svg
[dep-url]: https://david-dm.org/haraka/node-address-rfc2821
[cov-img]: https://codecov.io/github/haraka/node-address-rfc2821/coverage.svg?branch=master
[cov-url]: https://codecov.io/github/haraka/node-address-rfc2821?branch=master
[win-ci-img]: https://ci.appveyor.com/api/projects/status/rwk0n1mu0124chdb?svg=true
[win-ci-url]: https://ci.appveyor.com/project/msimerson/node-address-rfc2821/branch/master
[win-ci-img]: https://github.com/haraka/node-address-rfc2821/workflows/Plugin%20Tests%20-%20Windows/badge.svg
[win-ci-url]: https://github.com/haraka/node-address-rfc2821/actions?query=workflow%3A%22Plugin+Tests+-+Windows%22
20 changes: 0 additions & 20 deletions appveyor.yml

This file was deleted.

Loading

0 comments on commit b5b32e4

Please sign in to comment.