Skip to content

Commit

Permalink
Add GitHub Actions test workflow, remove Travis CI references
Browse files Browse the repository at this point in the history
  • Loading branch information
joeykilpatrick committed Dec 19, 2022
1 parent 6b91705 commit e778144
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 11 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Test

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 19.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm test
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<a href="https://npmjs.org/package/prompts">
<img src="https://img.shields.io/npm/v/prompts.svg" alt="version" />
</a>
<a href="https://travis-ci.org/terkelg/prompts">
<img src="https://img.shields.io/travis/terkelg/prompts.svg" alt="travis" />
<a href="https://github.com/terkelg/prompts/actions/workflows/test.yml">
<img src="https://github.com/terkelg/prompts/actions/workflows/test.yml/badge.svg" alt="test" />
</a>
<a href="https://npmjs.org/package/prompts">
<img src="https://img.shields.io/npm/dm/prompts.svg" alt="downloads" />
Expand Down

0 comments on commit e778144

Please sign in to comment.