Skip to content

Commit 00b781e

Browse files
authored
Merge pull request #12 from nodenv/test-gha
Run tests on github actions instead of travis
2 parents fe851e2 + 54fc2f0 commit 00b781e

3 files changed

Lines changed: 25 additions & 15 deletions

File tree

.github/workflows/test.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Test
2+
on:
3+
push:
4+
pull_request:
5+
schedule: [{ cron: "0 0 10 * *" }] # monthly https://crontab.guru/#0_0_10_*_*
6+
workflow_dispatch:
7+
8+
permissions: {}
9+
jobs:
10+
test:
11+
uses: nodenv/.github/.github/workflows/test.yml@v6
12+
with: { superlinter: false }
13+
permissions:
14+
contents: read
15+
packages: read
16+
id-token: write
17+
security-events: write
18+
statuses: write

.travis.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
# nodenv-nvmrc
22

3+
Teach nodenv to use .nvmrc in addition to .node-version.
4+
5+
[![Tests](https://img.shields.io/github/actions/workflow/status/nodenv/nodenv-nvmrc/test.yml?label=tests&logo=github)](https://github.com/nodenv/nodenv-nvmrc/actions/workflows/test.yml)
6+
[![Latest GitHub Release](https://img.shields.io/github/v/release/nodenv/nodenv-nvmrc?label=github&logo=github&sort=semver)](https://github.com/nodenv/nodenv-nvmrc/releases/latest)
7+
[![Latest Homebrew Release](<https://img.shields.io/badge/dynamic/regex?label=homebrew-nodenv&logo=homebrew&logoColor=white&url=https%3A%2F%2Fraw.githubusercontent.com%2Fnodenv%2Fhomebrew-nodenv%2Frefs%2Fheads%2Fmain%2FFormula%2Fnodenv-nvmrc.rb&search=archive%2Frefs%2Ftags%2Fv(%3F%3Cversion%3E%5Cd%2B.*).tar.gz&replace=v%24%3Cversion%3E>)](https://github.com/nodenv/homebrew-nodenv/blob/main/Formula/nodenv-nvmrc.rb)
8+
<!-- [![Latest npm Release](https://img.shields.io/npm/v/@nodenv/nodenv-nvmrc?logo=npm&logoColor=white)](https://www.npmjs.com/package/@nodenv/nodenv-nvmrc/v/latest) -->
9+
310
This is a plugin for [nodenv](https://github.com/nodenv/nodenv)
411
that detects the node version based on the current tree's .nvmrc. `.node-version` files still take precedence.
512

613
When .nvmrc is configured with a range this plugin chooses the greatest installed version matching the range or exits with an error if none match.
714

8-
[![Build Status](https://travis-ci.org/ouchxp/nodenv-nvmrc.svg?branch=master)](https://travis-ci.org/ouchxp/nodenv-nvmrc)
9-
1015
## Installation
1116

1217
### Installing with git

0 commit comments

Comments
 (0)