Migrate to github actions
parent
30e5e3ac11
commit
e6d4e14d88
@ -0,0 +1,26 @@
|
||||
name: build
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [12.x, 14.x]
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: 'npm'
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
- name: Lint files
|
||||
run: npm run lint
|
||||
- name: Build bundle
|
||||
run: npm run build
|
||||
- name: Run unit tests
|
||||
run: npm test
|
@ -1,4 +0,0 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- '12'
|
||||
- '14'
|
Loading…
Reference in New Issue