Skip to content

Commit

Permalink
Merge pull request #34 from agsh/coveralls
Browse files Browse the repository at this point in the history
Coveralls & NPM publish
  • Loading branch information
agsh authored May 17, 2024
2 parents b838c68 + c910e87 commit c96192e
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 20 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on: ["push", "pull_request"]

name: Test Coveralls

jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v4

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

- name: npm install, npm test
run: |
npm install
npm run coverage
- name: Coveralls
uses: coverallsapp/github-action@v2
30 changes: 30 additions & 0 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Node.js Package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm test

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
20 changes: 0 additions & 20 deletions .github/workflows/test.yml

This file was deleted.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Yet another POP3 library

[![Coverage Status](https://coveralls.io/repos/agsh/yapople/badge.svg?branch=master)](https://coveralls.io/r/agsh/yapople?branch=master)
[![NPM version](https://img.shields.io/npm/v/yapople.svg)](https://www.npmjs.com/package/yapople)

The design propose of the library is simplicity. A lot of common tasks with you POP3 mailbox doesn't require knowledge of
the eleven POP3 commands. You just want to retrieve some messages from your mailbox and that's all! So here is quick
Expand Down

0 comments on commit c96192e

Please sign in to comment.