mirror of
https://github.com/actions/setup-node.git
synced 2025-04-22 09:21:00 +00:00
.
This commit is contained in:
parent
bfecc7c2a1
commit
66a21ce13f
1 changed files with 10 additions and 17 deletions
27
.github/workflows/workflow.yml
vendored
27
.github/workflows/workflow.yml
vendored
|
@ -15,21 +15,14 @@ jobs:
|
||||||
operating-system: [ubuntu-latest, windows-latest]
|
operating-system: [ubuntu-latest, windows-latest]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup node 12
|
- name: Setup node 12
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 12.x
|
node-version: 12.x
|
||||||
|
- run: npm install
|
||||||
- name: npm install
|
- run: npm run format-check
|
||||||
run: npm install
|
- run: npm test
|
||||||
|
- run: npm run pack
|
||||||
- name: Lint
|
|
||||||
run: npm run format-check
|
|
||||||
|
|
||||||
- name: npm test
|
|
||||||
run: npm test
|
|
||||||
|
|
||||||
- name: Verify no unstaged changes
|
- name: Verify no unstaged changes
|
||||||
if: runner.os != 'windows'
|
if: runner.os != 'windows'
|
||||||
run: __tests__/verify-no-unstaged-changes.sh
|
run: __tests__/verify-no-unstaged-changes.sh
|
||||||
|
@ -38,12 +31,12 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
- name: Clear tool cache
|
||||||
|
run: rm -rf '${{ runner.tool_cache }}' && mkdir '${{ runner.tool_cache }}'
|
||||||
- name: Setup node 10
|
- name: Setup node 10
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
node-version: 10.x
|
node-version: 10.x
|
||||||
|
|
||||||
- name: Verify node and npm
|
- name: Verify node and npm
|
||||||
run: __tests__/verify-node.sh 10
|
run: __tests__/verify-node.sh 10
|
||||||
|
|
||||||
|
@ -61,12 +54,12 @@ jobs:
|
||||||
https_proxy: http://squid-proxy:3128
|
https_proxy: http://squid-proxy:3128
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@users/ericsciple/m165proxy
|
- uses: actions/checkout@users/ericsciple/m165proxy
|
||||||
|
- name: Clear tool cache
|
||||||
|
run: rm -rf '${{ runner.tool_cache }}' && mkdir '${{ runner.tool_cache }}'
|
||||||
- name: Setup node 10
|
- name: Setup node 10
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
node-version: 10.x
|
node-version: 10.x
|
||||||
|
|
||||||
- name: Verify node and npm
|
- name: Verify node and npm
|
||||||
run: __tests__/verify-node.sh 10
|
run: __tests__/verify-node.sh 10
|
||||||
|
|
||||||
|
@ -77,11 +70,11 @@ jobs:
|
||||||
no_proxy: github.com,nodejs.org,registry.npmjs.org
|
no_proxy: github.com,nodejs.org,registry.npmjs.org
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@users/ericsciple/m165proxy
|
- uses: actions/checkout@users/ericsciple/m165proxy
|
||||||
|
- name: Clear tool cache
|
||||||
|
run: rm -rf '${{ runner.tool_cache }}' && mkdir '${{ runner.tool_cache }}'
|
||||||
- name: Setup node 10
|
- name: Setup node 10
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
node-version: 10.x
|
node-version: 10.x
|
||||||
|
|
||||||
- name: Verify node and npm
|
- name: Verify node and npm
|
||||||
run: __tests__/verify-node.sh 10
|
run: __tests__/verify-node.sh 10
|
||||||
|
|
Loading…
Add table
Reference in a new issue