Skip to content

Commit

Permalink
Release v1.0.3 (#18)
Browse files Browse the repository at this point in the history
- ci: update with shared GHA workflows
- ci: add node 18 testing
- ci: replace travis & appveyor with github actions
  • Loading branch information
msimerson authored Jun 6, 2022
1 parent 745362c commit af40a77
Show file tree
Hide file tree
Showing 13 changed files with 88 additions and 140 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
allow:
- dependency-type: production
28 changes: 0 additions & 28 deletions .github/workflows/ci-test.yml

This file was deleted.

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

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 }}
13 changes: 13 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: "CodeQL"

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '18 7 * * 4'

jobs:
codeql:
uses: haraka/.github/.github/workflows/codeql.yml@master
32 changes: 0 additions & 32 deletions .github/workflows/coveralls.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/lint.yml

This file was deleted.

51 changes: 8 additions & 43 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,14 @@
name: Publish
name: publish

on:
release:
types: [ published ]
push:
branches:
- master

env:
node_version: 16
CI: true

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 }}

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

- uses: actions/setup-node@v2
with:
node-version: ${{ env.node_version }}
registry-url: https://registry.npmjs.org
- run: npm install
publish:
uses: haraka/.github/.github/workflows/publish.yml@master
secrets: inherit
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ jspm_packages
# Optional REPL history
.node_repl_history

package-lock.json
package-lock.json
haraka-update.sh
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule ".release"]
path = .release
url = git@github.com:msimerson/.release.git
1 change: 1 addition & 0 deletions .release
Submodule .release added at 9be2b2
4 changes: 4 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@

### Unreleased

### 1.0.4 - 2022-06-05

- ci: update with shared GHA workflows
- ci: add node 18 testing
- ci: replace travis & appveyor with github actions

Expand Down
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
[![Build Status][ci-img]][ci-url]
[![Windows Build Status][ci-win-img]][ci-win-url]
[![Greenkeeper badge][gk-img]][gk-url]
[![Code Climate][clim-img]][clim-url]
[![Code Coverage][cov-img]][cov-url]
[![NPM][npm-img]][npm-url]
Expand Down Expand Up @@ -412,15 +410,11 @@ The function name is required and maps to the list of defined status codes in RF


<!-- leave these buried at the bottom of the document -->
[ci-img]: https://travis-ci.org/haraka/haraka-dsn.svg
[ci-url]: https://travis-ci.org/haraka/haraka-dsn
[ci-win-img]: https://ci.appveyor.com/api/projects/status/jl1acy5j9x277b79?svg=true
[ci-win-url]: https://ci.appveyor.com/project/msimerson/haraka-dsn
[ci-img]: https://github.com/haraka/haraka-dsn/actions/workflows/ci.yml/badge.svg
[ci-url]: https://github.com/haraka/haraka-dsn/actions/workflows/ci.yml
[cov-img]: https://codecov.io/github/haraka/haraka-dsn/coverage.svg
[cov-url]: https://codecov.io/github/haraka/haraka-dsn
[clim-img]: https://codeclimate.com/github/haraka/haraka-dsn/badges/gpa.svg
[clim-url]: https://codeclimate.com/github/haraka/haraka-dsn
[gk-img]: https://badges.greenkeeper.io/haraka/haraka-dsn.svg
[gk-url]: https://greenkeeper.io/
[npm-img]: https://nodei.co/npm/haraka-dsn.png
[npm-url]: https://www.npmjs.com/package/haraka-dsn
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
},
"main": "index.js",
"scripts": {
"lint": "npx eslint *.js test/*.js",
"lintfix": "npx --fix *.js test/*.js",
"cover": "npx nyc --reporter=lcov npm run test",
"lint": "npx eslint *.js test",
"lintfix": "npx --fix *.js test",
"test": "npx mocha"
},
"repository": {
Expand All @@ -27,10 +26,10 @@
},
"homepage": "https://github.com/haraka/haraka-dsn#readme",
"devDependencies": {
"eslint": ">=6",
"eslint": ">=8",
"eslint-plugin-haraka": "*",
"haraka-constants": "*",
"mocha": "*"
"mocha": ">=9"
},
"dependencies": {
}
Expand Down

0 comments on commit af40a77

Please sign in to comment.