Skip to content

Commit

Permalink
Chore: replace appveyor to actions
Browse files Browse the repository at this point in the history
  • Loading branch information
pustovitDmytro committed Jan 14, 2022
1 parent 9330c38 commit 13aff75
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 150 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/npt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Node.js versions

on: push

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
- name: Install dependencies
run: npm ci
- name: Pack tests
run: npx npt pack -c .package-tester.json
- uses: actions/upload-artifact@master
with:
name: package-tests
path: tmp
test:
runs-on: ${{ matrix.os }}
env:
YARGS_MIN_NODE_VERSION: ${{ matrix.node }}
strategy:
matrix:
os: [ macos-latest, windows-latest, ubuntu-latest ]
node: [ 10, 12, 14, 16 ]
needs: build
steps:
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Show configuration
run: |
npm config get user-agent
- uses: actions/checkout@master
- uses: actions/download-artifact@master
with:
name: package-tests
path: tmp
- name: Install dependencies
working-directory: tmp/package-tests
run: npm install
- name: Run tests
working-directory: tmp/package-tests
run: npm run test
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ Boilerplate for creating npm packages.
- [Contribute](#contribute)

## Requirements
[![Platform Status][appveyor-badge]][appveyor-url]
[![Platform Status][node-ver-test-badge]][node-ver-test-url]

To use library you need to have [node](https://nodejs.org) and [npm](https://www.npmjs.com) installed in your machine:

* node `>=10`
* npm `>=6`

Package is [continuously tested][appveyor-url] on darwin, linux, win32 platforms. All active and maintenance [LTS](https://nodejs.org/en/about/releases/) node releases are supported.
Package is [continuously tested][node-ver-test-url] on darwin, linux and win32 platforms. All active and maintenance [LTS](https://nodejs.org/en/about/releases/) node releases are supported.

## Installation

Expand Down Expand Up @@ -94,8 +94,8 @@ Make the changes to the code and tests. Then commit to your branch. Be sure to f
[npm-size-badge]: https://img.shields.io/bundlephobia/min/npm-boilerplate
[npm-size-url]: https://bundlephobia.com/result?p=npm-boilerplate

[appveyor-badge]: https://ci.appveyor.com/api/projects/status/lik73h3vxd7687pr/branch/master?svg=true
[appveyor-url]: https://ci.appveyor.com/project/pustovitDmytro/npm-boilerplate/branch/master
[node-ver-test-badge]: https://github.com/pustovitDmytro/npm-boilerplate/actions/workflows/npt.yml/badge.svg?branch=master
[node-ver-test-url]: https://github.com/pustovitDmytro/npm-boilerplate/actions?query=workflow%3A%22Node.js+versions%22

[fossa-badge]: https://app.fossa.com/api/projects/custom%2B24828%2Fnpm-boilerplate.svg?type=shield
[fossa-url]: https://app.fossa.com/projects/custom%2B24828%2Fnpm-boilerplate?ref=badge_shield
146 changes: 0 additions & 146 deletions appveyor.yml

This file was deleted.

0 comments on commit 13aff75

Please sign in to comment.