forked from sombochea/verdaccio-ui
45 lines
942 B
YAML
45 lines
942 B
YAML
name: Node CI
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- name: Use Node.js 10.x
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
version: 10.x
|
|
- name: Use Yarn 1.17.2
|
|
run: |
|
|
npm install -g yarn@1.17.2
|
|
- name: yarn build
|
|
run: |
|
|
yarn install
|
|
yarn build
|
|
test:
|
|
name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
node_version: [8, 10, 12]
|
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Use Node.js ${{ matrix.node_version }}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
version: ${{ matrix.node_version }}
|
|
|
|
- name: Use Yarn 1.17.2
|
|
run: |
|
|
npm install -g yarn@1.17.2
|
|
- name: yarn build
|
|
run: |
|
|
yarn install
|
|
yarn build
|