mirror of
https://github.com/actions/setup-node.git
synced 2025-04-22 09:21:00 +00:00
created test workflow & nvmrc file
This commit is contained in:
parent
82441b3f82
commit
052bc8b6a3
2 changed files with 34 additions and 0 deletions
33
.github/workflows/version-file-workflow.yml
vendored
Normal file
33
.github/workflows/version-file-workflow.yml
vendored
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
|
||||||
|
|
||||||
|
name: version-file-test
|
||||||
|
|
||||||
|
|
||||||
|
on:
|
||||||
|
|
||||||
|
push:
|
||||||
|
branches: [ add-node-version-file-support ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ add-node-version-file-support ]
|
||||||
|
|
||||||
|
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
|
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Setup node test
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version-file: '.nvmrc'
|
||||||
|
- run: npm ci
|
||||||
|
- run: npm run build
|
1
.nvmrc
Normal file
1
.nvmrc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
v12.4.0
|
Loading…
Add table
Reference in a new issue