034674c88c
* Add Windows to test suite * Try implicit URL
36 lines
758 B
YAML
36 lines
758 B
YAML
name: Node CI
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest]
|
|
node-version: [14.x, 15.x]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: npm install, build, and test
|
|
run: |
|
|
cd examples/snowpack
|
|
npm ci
|
|
cd ../..
|
|
|
|
npm ci
|
|
npm run build
|
|
npm test
|
|
env:
|
|
CI: true
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- uses: actions/setup-node@v1
|
|
- run: npm ci
|
|
- run: npm run lint
|