mirror of
https://github.com/actions/setup-node
synced 2025-04-09 18:35:51 +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]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Setup node 12
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12.x
|
||||
|
||||
- name: npm install
|
||||
run: npm install
|
||||
|
||||
- name: Lint
|
||||
run: npm run format-check
|
||||
|
||||
- name: npm test
|
||||
run: npm test
|
||||
|
||||
- run: npm install
|
||||
- run: npm run format-check
|
||||
- run: npm test
|
||||
- run: npm run pack
|
||||
- name: Verify no unstaged changes
|
||||
if: runner.os != 'windows'
|
||||
run: __tests__/verify-no-unstaged-changes.sh
|
||||
|
@ -38,12 +31,12 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Clear tool cache
|
||||
run: rm -rf '${{ runner.tool_cache }}' && mkdir '${{ runner.tool_cache }}'
|
||||
- name: Setup node 10
|
||||
uses: ./
|
||||
with:
|
||||
node-version: 10.x
|
||||
|
||||
- name: Verify node and npm
|
||||
run: __tests__/verify-node.sh 10
|
||||
|
||||
|
@ -61,12 +54,12 @@ jobs:
|
|||
https_proxy: http://squid-proxy:3128
|
||||
steps:
|
||||
- uses: actions/checkout@users/ericsciple/m165proxy
|
||||
|
||||
- name: Clear tool cache
|
||||
run: rm -rf '${{ runner.tool_cache }}' && mkdir '${{ runner.tool_cache }}'
|
||||
- name: Setup node 10
|
||||
uses: ./
|
||||
with:
|
||||
node-version: 10.x
|
||||
|
||||
- name: Verify node and npm
|
||||
run: __tests__/verify-node.sh 10
|
||||
|
||||
|
@ -77,11 +70,11 @@ jobs:
|
|||
no_proxy: github.com,nodejs.org,registry.npmjs.org
|
||||
steps:
|
||||
- uses: actions/checkout@users/ericsciple/m165proxy
|
||||
|
||||
- name: Clear tool cache
|
||||
run: rm -rf '${{ runner.tool_cache }}' && mkdir '${{ runner.tool_cache }}'
|
||||
- name: Setup node 10
|
||||
uses: ./
|
||||
with:
|
||||
node-version: 10.x
|
||||
|
||||
- name: Verify node and npm
|
||||
run: __tests__/verify-node.sh 10
|
||||
|
|
Loading…
Add table
Reference in a new issue