Migrate to github actions (#378)
* Migrate to github actions * Remove `ci`. Forgot I removed the lockfile. * Use `compile` instead of `build` so that tests aren't run twice * Update build badgepull/377/head
parent
30e5e3ac11
commit
05dd46dc92
@ -0,0 +1,25 @@
|
||||
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 }}
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
- name: Lint files
|
||||
run: npm run lint
|
||||
- name: Build bundle
|
||||
run: npm run compile
|
||||
- name: Run unit tests
|
||||
run: npm test
|
@ -1,4 +0,0 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- '12'
|
||||
- '14'
|
Loading…
Reference in New Issue