Skip to content

Commit

Permalink
ci: more shared workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Dec 15, 2023
1 parent 0760a6d commit f6ebdf7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 52 deletions.
28 changes: 5 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,9 @@ jobs:
secrets: inherit

test:
needs: lint
runs-on: ${{ matrix.os }}
# services:
# redis:
# image: redis
# ports:
# - 6379:6379
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
node-version: [ 14, 16, 18 ]
fail-fast: false
needs: [ lint ]
uses: haraka/.github/.github/workflows/ubuntu.yml@master

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
windows:
needs: [ lint ]
uses: haraka/.github/.github/workflows/windows.yml@master
26 changes: 0 additions & 26 deletions .github/workflows/lint.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ env:
jobs:
publish:
uses: haraka/.github/.github/workflows/publish.yml@master
secrets: inherit
secrets: inherit
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ connection.transaction.notes.get(['i.do','like','pa.in']);

To reduce the likelihood of namespace collisions in Haraka notes, consider registering the note paths your plugins use [in the registry](https://github.com/haraka/haraka-notes/wiki).


<!-- leave these buried at the bottom of the document -->
[ci-img]: https://github.com/haraka/haraka-notes/actions/workflows/ci.yml/badge.svg
[ci-url]: https://github.com/haraka/haraka-notes/actions/workflows/ci.yml
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
},
"homepage": "https://github.com/haraka/haraka-notes#readme",
"devDependencies": {
"eslint": ">=8",
"eslint": "^8.55.0",
"eslint-plugin-haraka": "*",
"mocha": ">=9"
"mocha": "^10.2.0"
}
}

0 comments on commit f6ebdf7

Please sign in to comment.